Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/gd/common/
Dsync_map_count_test.cc77 struct TestString { struct
78 TestString(std::string string) : string_(string) {} in TestString() argument
81 bool operator<(const TestString& other) const { return other.string_ > string_; } in operator <() argument
82 bool operator==(const TestString& other) const { return other.string_ == string_; } in operator ==() argument
89 void LoadTestStringMap(SyncMapCount<TestString>& map) { in LoadTestStringMap()
91 map.Put(TestString(*p)); in LoadTestStringMap()
97 SyncMapCount<TestString> map; in TEST()
103 ASSERT_EQ(3ul, m[TestString("Three")]); in TEST()
104 ASSERT_EQ(2ul, m[TestString("Two")]); in TEST()
105 ASSERT_EQ(1ul, m[TestString("One")]); in TEST()
[all …]