Home
last modified time | relevance | path

Searched refs:lhs (Results 1 – 11 of 11) sorted by relevance

/system/ulib/unittest/include/unittest/
A Dunittest.h569 #define EXPECT_EQ(lhs, rhs, ...) EXPECT_CMP(==, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
570 #define EXPECT_NE(lhs, rhs, ...) EXPECT_CMP(!=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
571 #define EXPECT_LE(lhs, rhs, ...) EXPECT_CMP(<=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
572 #define EXPECT_GE(lhs, rhs, ...) EXPECT_CMP(>=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
573 #define EXPECT_LT(lhs, rhs, ...) EXPECT_CMP(<, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
574 #define EXPECT_GT(lhs, rhs, ...) EXPECT_CMP(>, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
601 #define ASSERT_EQ(lhs, rhs, ...) ASSERT_CMP(==, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
602 #define ASSERT_NE(lhs, rhs, ...) ASSERT_CMP(!=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
603 #define ASSERT_LE(lhs, rhs, ...) ASSERT_CMP(<=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
605 #define ASSERT_LT(lhs, rhs, ...) ASSERT_CMP(<, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
[all …]
/system/ulib/fit/include/lib/fit/
A Dnullable.h210 return !lhs.has_value();
214 return lhs.has_value();
228 return (lhs.has_value() == rhs.has_value()) && (!lhs.has_value() || *lhs == *rhs);
232 return (lhs.has_value() != rhs.has_value()) || (lhs.has_value() && *lhs != *rhs);
236 constexpr bool operator==(const nullable<T>& lhs, const U& rhs) {
237 return (lhs.has_value() != is_null(rhs)) && (!lhs.has_value() || *lhs == rhs);
240 constexpr bool operator!=(const nullable<T>& lhs, const U& rhs) {
241 return (lhs.has_value() == is_null(rhs)) || (lhs.has_value() && *lhs != rhs);
245 constexpr bool operator==(const T& lhs, const nullable<U>& rhs) {
246 return (is_null(lhs) != rhs.has_value()) && (!rhs.has_value() || lhs == *rhs);
[all …]
A Doptional.h252 constexpr bool operator==(const optional<T>& lhs, nullopt_t) {
253 return !lhs.has_value();
256 constexpr bool operator!=(const optional<T>& lhs, nullopt_t) {
257 return lhs.has_value();
271 return (lhs.has_value() == rhs.has_value()) && (!lhs.has_value() || *lhs == *rhs);
275 return (lhs.has_value() != rhs.has_value()) || (lhs.has_value() && *lhs != *rhs);
279 constexpr bool operator==(const optional<T>& lhs, const U& rhs) {
280 return lhs.has_value() && *lhs == rhs;
284 return !lhs.has_value() || *lhs != rhs;
289 return rhs.has_value() && lhs == *rhs;
[all …]
/system/ulib/fbl/include/fbl/
A Dstring_piece.h100 bool operator==(const StringPiece& lhs, const StringPiece& rhs);
102 inline bool operator!=(const StringPiece& lhs, const StringPiece& rhs) {
103 return !(lhs == rhs);
106 inline bool operator<(const StringPiece& lhs, const StringPiece& rhs) {
107 return lhs.compare(rhs) < 0;
110 inline bool operator>(const StringPiece& lhs, const StringPiece& rhs) {
111 return lhs.compare(rhs) > 0;
114 inline bool operator<=(const StringPiece& lhs, const StringPiece& rhs) {
115 return lhs.compare(rhs) <= 0;
118 inline bool operator>=(const StringPiece& lhs, const StringPiece& rhs) {
[all …]
A Dstring.h311 bool operator==(const String& lhs, const String& rhs);
313 inline bool operator!=(const String& lhs, const String& rhs) {
314 return !(lhs == rhs);
317 inline bool operator<(const String& lhs, const String& rhs) {
318 return lhs.compare(rhs) < 0;
321 inline bool operator>(const String& lhs, const String& rhs) {
322 return lhs.compare(rhs) > 0;
325 inline bool operator<=(const String& lhs, const String& rhs) {
326 return lhs.compare(rhs) <= 0;
329 inline bool operator>=(const String& lhs, const String& rhs) {
[all …]
/system/ulib/fbl/
A Dstring_piece.cpp23 bool operator==(const StringPiece& lhs, const StringPiece& rhs) { in operator ==() argument
24 return lhs.length() == rhs.length() && in operator ==()
25 memcmp(lhs.data(), rhs.data(), lhs.length()) == 0; in operator ==()
A Dstring.cpp221 bool operator==(const String& lhs, const String& rhs) { in operator ==() argument
222 return lhs.length() == rhs.length() && in operator ==()
223 memcmp(lhs.data(), rhs.data(), lhs.length()) == 0; in operator ==()
/system/host/blobfs/
A Dblobfs.h45 inline bool operator()(const blobfs::MerkleInfo& lhs, const blobfs::MerkleInfo& rhs) const { in operator()
46 const uint8_t* lhs_bytes = lhs.digest.AcquireBytes(); in operator()
49 lhs.digest.ReleaseBytes(); in operator()
A Dmain.cpp178 auto compare = [](const blobfs::MerkleInfo& lhs, const blobfs::MerkleInfo& rhs) { in CalculateRequiredSize() argument
179 return lhs.digest == rhs.digest; in CalculateRequiredSize()
/system/utest/crypto/
A Dutils.h17 #define UT_ZX(lhs, rhs, ret) \ argument
20 zx_status_t _lhs_val = (lhs); \
23 UNITTEST_FAIL_TRACEF("%s returned %s; expected %s\n", #lhs, \
/system/utest/fbl/
A Dalgorithm_tests.cpp252 bool operator()(const int& lhs, const int& rhs) { in operator ()()
253 return lhs < rhs; in operator ()()

Completed in 18 milliseconds