Home | History | Annotate | Download | only in utils

Lines Matching refs:dex

22 #include "dex/dex_file-inl.h"
23 #include "dex/method_reference.h"
32 std::unique_ptr<const DexFile> dex(OpenTestDexFile("Interfaces"));
33 ASSERT_TRUE(dex != nullptr);
38 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value));
39 EXPECT_FALSE(map.HaveDexFile(dex.get()));
40 // Error case: Dex file not registered.
41 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, 1) == Map::kInsertResultInvalidDexFile);
42 map.AddDexFile(dex.get());
43 EXPECT_TRUE(map.HaveDexFile(dex.get()));
44 EXPECT_GT(dex->NumMethodIds(), 10u);
46 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value));
50 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) ==
52 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value));
55 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 2), 0, kInsertValue2) ==
57 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value));
59 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 2), &value));
62 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue + 1) ==
65 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), kInsertValue, kInsertValue + 1) ==
67 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value));