Home
last modified time | relevance | path

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

/external/libmojo/mojo/public/cpp/bindings/
Dwtf_map.h31 class WTFMap {
37 WTFMap() : is_null_(false) {} in WTFMap() function
39 WTFMap(std::nullptr_t null_pointer) : is_null_(true) {} in WTFMap() function
41 ~WTFMap() {} in ~WTFMap()
43 WTFMap(WTF::HashMap<Key, Value>&& other) in WTFMap() function
45 WTFMap(WTFMap&& other) : is_null_(true) { Take(&other); } in WTFMap() function
47 WTFMap& operator=(WTF::HashMap<Key, Value>&& other) {
52 WTFMap& operator=(WTFMap&& other) {
57 WTFMap& operator=(std::nullptr_t null_pointer) {
70 static WTFMap From(const U& other) { in From()
[all …]
Dmap_traits_wtf.h15 struct MapTraits<WTFMap<K, V>> {
18 using Iterator = typename WTFMap<K, V>::Iterator;
19 using ConstIterator = typename WTFMap<K, V>::ConstIterator;
21 static bool IsNull(const WTFMap<K, V>& input) { return input.is_null(); }
22 static void SetToNull(WTFMap<K, V>* output) { *output = nullptr; }
24 static size_t GetSize(const WTFMap<K, V>& input) { return input.size(); }
26 static ConstIterator GetBegin(const WTFMap<K, V>& input) {
29 static Iterator GetBegin(WTFMap<K, V>& input) { return input.begin(); }
40 static bool Insert(WTFMap<K, V>& input, const K& key, V&& value) {
41 if (!WTFMap<K, V>::IsValidKey(key)) {
[all …]
/external/libmojo/mojo/public/cpp/bindings/tests/
Dwtf_map_unittest.cc21 MAP_COMMON_TEST(WTFMap, NullAndEmpty) in MAP_COMMON_TEST() argument
22 MAP_COMMON_TEST(WTFMap, InsertWorks) in MAP_COMMON_TEST()
23 MAP_COMMON_TEST(WTFMap, TestIndexOperator) in MAP_COMMON_TEST()
24 MAP_COMMON_TEST(WTFMap, TestIndexOperatorAsRValue) in MAP_COMMON_TEST()
25 MAP_COMMON_TEST(WTFMap, TestIndexOperatorMoveOnly) in MAP_COMMON_TEST()
26 MAP_COMMON_TEST(WTFMap, MapArrayClone) in MAP_COMMON_TEST()
27 MAP_COMMON_TEST(WTFMap, ArrayOfMap) in MAP_COMMON_TEST()
35 WTFMap<int32_t, CopyableType> mojo_map(std::move(map1)); in MAP_COMMON_TEST()
53 WTFMap<int32_t, MoveOnlyType> mojo_map(std::move(map1)); in TEST_F()
Dmap_common_test.h24 class WTFMap; variable
54 struct TypeTraits<WTFMap> {
Dwtf_types_unittest.cc176 using WTFType = WTFMap<WTF::String, WTF::String>; in TEST_F()
205 using WTFType = WTFMap<WTF::String, WTF::String>; in TEST_F()