/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/test/ |
StubResourceBundle.groovy | 19 * Stub implementation of ResourceBundle for testing. Provide an optional Map of entries in the constructor,
20 * and allow dynamic adding or changing of map contents. Automatically define default value for key if no entry
25 Map map
27 StubResourceBundle(Map map = [:]) {
28 this.map = map
32 map.put(key, value)
37 return map[key] ?: "key=$key arg0={0} arg1={1}".toString() [all...] |
/bionic/linker/ |
linker_gdb_support.cpp | 34 void insert_link_map_into_debug_map(link_map* map) { 40 r_debug_tail->l_next = map; 41 map->l_prev = r_debug_tail; 42 map->l_next = nullptr; 44 _r_debug.r_map = map; 45 map->l_prev = nullptr; 46 map->l_next = nullptr; 48 r_debug_tail = map; 51 void remove_link_map_from_debug_map(link_map* map) { 52 if (r_debug_tail == map) { [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingConcurrentMapTest.java | 41 TestMap map = new TestMap(); local 42 map.put("foo", 1); 43 assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2)); 44 assertEquals(Integer.valueOf(1), map.get("foo")); 45 assertNull(map.putIfAbsent("bar", 3)); 46 assertEquals(Integer.valueOf(3), map.get("bar")); 50 TestMap map = new TestMap(); local 51 map.put("foo", 1); 52 assertFalse(map.remove("foo", 2)); 53 assertFalse(map.remove("bar", 1)) 60 TestMap map = new TestMap(); local 69 TestMap map = new TestMap(); local [all...] |
/prebuilts/go/darwin-x86/test/ |
map1.go | 7 // Test map declarations of many types, including erroneous ones. 18 _ map[int8]v 19 _ map[uint8]v 20 _ map[int16]v 21 _ map[uint16]v 22 _ map[int32]v 23 _ map[uint32]v 24 _ map[int64]v 25 _ map[uint64]v 26 _ map[int] [all...] |
/prebuilts/go/linux-x86/test/ |
map1.go | 7 // Test map declarations of many types, including erroneous ones. 18 _ map[int8]v 19 _ map[uint8]v 20 _ map[int16]v 21 _ map[uint16]v 22 _ map[int32]v 23 _ map[uint32]v 24 _ map[int64]v 25 _ map[uint64]v 26 _ map[int] [all...] |
/external/proguard/src/proguard/obfuscate/ |
MapCleaner.java | 27 import java.util.Map; 30 * This ClassVisitor clears a given map whenever it visits a class. 38 private final Map map; field in class:MapCleaner 43 * @param map the map to be cleared. 45 public MapCleaner(Map map) 47 this.map = map; [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldFileNameMapTest.java | 26 FileNameMap map = URLConnection.getFileNameMap(); local 27 assertEquals("text/plain", map.getContentTypeFor("test.text")); 28 assertEquals("text/plain", map.getContentTypeFor("test.txt")); 29 assertEquals("text/html", map.getContentTypeFor("test.htm")); 30 assertEquals("text/html", map.getContentTypeFor("test.html"));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/ |
compare.pass.cpp | 10 // <map> 14 // class map 19 #include <map> 29 std::map<Key, int>::iterator it = std::map<Key, int>().find(Key(0)); 30 std::pair<std::map<Key, int>::iterator, bool> result = 31 std::map<Key, int>().insert(std::make_pair(Key(0), 0));
|
/external/clang/test/OpenMP/ |
target_map_messages.cpp | 67 #pragma omp target map // expected-error {{expected '(' after 'map'}} 68 #pragma omp target map( // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{expected expression}} 69 #pragma omp target map() // expected-error {{expected expression}} 70 #pragma omp target map(alloc) // expected-error {{use of undeclared identifier 'alloc'}} 71 #pragma omp target map(to argc // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{expected ',' or ')' in 'map' clause}} 72 #pragma omp target map(to:) // expected-error {{expected expression}} 73 #pragma omp target map(from: argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}} 74 #pragma omp target map(x: y) // expected-error {{incorrect map type, expected one of 'to', 'from', 'tofrom', 'alloc', 're (…) [all...] |
/ndk/tests/device/test-stlport_shared-exception/jni/ |
delete3_1.cpp | 10 struct map { struct 11 ~map (); 15 map<T, U>::~map () 34 map< int, int>* pMap = new map< int, int>;
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
delete3_1.cpp | 10 struct map { struct 11 ~map (); 15 map<T, U>::~map () 34 map< int, int>* pMap = new map< int, int>;
|
/external/libcxx/test/std/containers/associative/map/map.access/ |
index_tuple.pass.cpp | 10 // <map> 12 // class map 18 #include <map> 30 map<tuple<int,int>, size_t> m;
|
/external/libcxx/test/std/containers/associative/map/map.ops/ |
count1.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_no_type> M;
|
count2.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_private> M;
|
count3.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_not_a_type> M;
|
equal_range1.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_no_type> M;
|
equal_range2.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_private> M;
|
equal_range3.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_not_a_type> M;
|
find1.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_no_type> M;
|
find2.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_private> M;
|
find3.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_not_a_type> M;
|
lower_bound1.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_no_type> M;
|
lower_bound2.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_private> M;
|
lower_bound3.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_not_a_type> M;
|
upper_bound1.fail.cpp | 10 // <map> 12 // class map 22 #include <map> 34 typedef std::map<int, double, transparent_less_no_type> M;
|