• Home
  • Raw
  • Download

Lines Matching refs:raw

61   std::unique_ptr<const DexFile> raw(OpenTestDexFile("Main"));  in TEST_F()  local
62 EXPECT_NE(raw->GetHeader().checksum_, raw->GetLocationChecksum()); in TEST_F()
98 std::unique_ptr<const DexFile> raw(OpenTestDexFile("Nested")); in TEST_F() local
99 ASSERT_TRUE(raw.get() != nullptr); in TEST_F()
100 EXPECT_EQ(3U, raw->NumClassDefs()); in TEST_F()
102 const dex::ClassDef& c0 = raw->GetClassDef(0); in TEST_F()
103 EXPECT_STREQ("LNested$1;", raw->GetClassDescriptor(c0)); in TEST_F()
105 const dex::ClassDef& c1 = raw->GetClassDef(1); in TEST_F()
106 EXPECT_STREQ("LNested$Inner;", raw->GetClassDescriptor(c1)); in TEST_F()
108 const dex::ClassDef& c2 = raw->GetClassDef(2); in TEST_F()
109 EXPECT_STREQ("LNested;", raw->GetClassDescriptor(c2)); in TEST_F()
113 std::unique_ptr<const DexFile> raw(OpenTestDexFile("GetMethodSignature")); in TEST_F() local
114 ASSERT_TRUE(raw.get() != nullptr); in TEST_F()
115 EXPECT_EQ(1U, raw->NumClassDefs()); in TEST_F()
117 const dex::ClassDef& class_def = raw->GetClassDef(0); in TEST_F()
118 ASSERT_STREQ("LGetMethodSignature;", raw->GetClassDescriptor(class_def)); in TEST_F()
120 ClassAccessor accessor(*raw, class_def); in TEST_F()
128 const dex::MethodId& method_id = raw->GetMethodId(cur_method->GetIndex()); in TEST_F()
129 const char* name = raw->StringDataByIdx(method_id.name_idx_); in TEST_F()
131 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F()
202 const dex::MethodId& method_id = raw->GetMethodId(cur_method->GetIndex()); in TEST_F()
204 const char* name = raw->StringDataByIdx(method_id.name_idx_); in TEST_F()
207 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F()
212 raw->PrettyMethod(cur_method->GetIndex(), /* with_signature= */ false)); in TEST_F()
214 raw->PrettyMethod(cur_method->GetIndex(), /* with_signature= */ true)); in TEST_F()
219 std::unique_ptr<const DexFile> raw(OpenTestDexFile("GetMethodSignature")); in TEST_F() local
220 ASSERT_TRUE(raw.get() != nullptr); in TEST_F()
221 EXPECT_EQ(1U, raw->NumClassDefs()); in TEST_F()
227 const dex::StringId* str_id = raw->FindStringId(str); in TEST_F()
228 const char* dex_str = raw->GetStringData(*str_id); in TEST_F()