Lines Matching refs:rva
67 os << "AddressRange(rva=" << ar.rva << ", length=" << ar.length << ")"; in operator <<()
73 OMAP CreateOmap(DWORD rva, DWORD rvaTo) { in CreateOmap() argument
74 OMAP o = { rva, rvaTo }; in CreateOmap()
126 omap_data.omap_to.push_back(CreateOmap(Bt.rva, B.rva)); in InitOmapData()
127 omap_data.omap_to.push_back(CreateOmap(Dt.rva, D.rva)); in InitOmapData()
128 omap_data.omap_to.push_back(CreateOmap(Ft.rva, F.rva)); in InitOmapData()
129 omap_data.omap_to.push_back(CreateOmap(Et.rva, E.rva)); in InitOmapData()
130 omap_data.omap_to.push_back(CreateOmap(injected.rva, kInvalidAddress)); in InitOmapData()
131 omap_data.omap_to.push_back(CreateOmap(H1t.rva, H.rva)); in InitOmapData()
132 omap_data.omap_to.push_back(CreateOmap(G1t.rva, G.rva)); in InitOmapData()
133 omap_data.omap_to.push_back(CreateOmap(G2t.rva, G.rva)); in InitOmapData()
134 omap_data.omap_to.push_back(CreateOmap(H2t.rva, H.rva + H1t.length)); in InitOmapData()
138 omap_data.omap_from.push_back(CreateOmap(B.rva, Bt.rva)); in InitOmapData()
139 omap_data.omap_from.push_back(CreateOmap(C.rva, kInvalidAddress)); in InitOmapData()
140 omap_data.omap_from.push_back(CreateOmap(D.rva, Dt.rva)); in InitOmapData()
141 omap_data.omap_from.push_back(CreateOmap(E.rva, Et.rva)); in InitOmapData()
142 omap_data.omap_from.push_back(CreateOmap(F.rva, Ft.rva)); in InitOmapData()
143 omap_data.omap_from.push_back(CreateOmap(G.rva, G1t.rva)); in InitOmapData()
144 omap_data.omap_from.push_back(CreateOmap(H.rva, H1t.rva)); in InitOmapData()
145 omap_data.omap_from.push_back(CreateOmap(H.rva + H1t.length, H2t.rva)); in InitOmapData()
177 mapping.push_back(CreateMappedRange(0, 0, B.rva, 0, 0)); in TEST_F()
179 mapping.push_back(CreateMappedRange(B.rva, Bt.rva, B.length, 0, C.length)); in TEST_F()
181 mapping.push_back(CreateMappedRange(D.rva, Dt.rva, Dt.length, 0, 5)); in TEST_F()
183 mapping.push_back(CreateMappedRange(E.rva, Et.rva, E.length, injected.length, in TEST_F()
185 mapping.push_back(CreateMappedRange(F.rva, Ft.rva, F.length, 0, 0)); in TEST_F()
187 mapping.push_back(CreateMappedRange(G.rva, G1t.rva, G.length, 0, 0)); in TEST_F()
188 mapping.push_back(CreateMappedRange(G.rva, G2t.rva, G.length, 0, 0)); in TEST_F()
190 mapping.push_back(CreateMappedRange(H.rva, H1t.rva, H1t.length, 0, 0)); in TEST_F()
191 mapping.push_back(CreateMappedRange(H.rva + H1t.length, H2t.rva, H2t.length, in TEST_F()
198 endpoint_index_map.push_back(CreateEndpointIndex(B.rva, 1)); in TEST_F()
199 endpoint_index_map.push_back(CreateEndpointIndex(D.rva, 2)); in TEST_F()
200 endpoint_index_map.push_back(CreateEndpointIndex(E.rva, 3)); in TEST_F()
201 endpoint_index_map.push_back(CreateEndpointIndex(F.rva, 4)); in TEST_F()
203 endpoint_index_map.push_back(CreateEndpointIndex(G.rva, 5)); in TEST_F()
205 endpoint_index_map.push_back(CreateEndpointIndex(H.rva, 7)); in TEST_F()
206 endpoint_index_map.push_back(CreateEndpointIndex(H.rva + H1t.length, 8)); in TEST_F()
257 AddressRange DEF(D.rva, F.end() - D.rva); in TEST_F()
261 AddressRange DFEt(Dt.rva, Et.end() - Dt.rva); in TEST_F()
267 MapAddressRange(image_map, AddressRange(D.rva, 0), &mapped_ranges); in TEST_F()
269 EXPECT_THAT(mapped_ranges, testing::ElementsAre(AddressRange(Dt.rva, 0))); in TEST_F()
274 MapAddressRange(image_map, AddressRange(G.rva, 0), &mapped_ranges); in TEST_F()
276 EXPECT_THAT(mapped_ranges, testing::ElementsAre(AddressRange(G1t.rva, 0), in TEST_F()
277 AddressRange(G2t.rva, 0))); in TEST_F()
285 AddressRange(G1t.rva, G2t.end() - G1t.rva))); in TEST_F()
298 AddressRange EFGH(E.rva, H.end() - E.rva); in TEST_F()
302 AddressRange FEHGGHt(Ft.rva, H2t.end() - Ft.rva); in TEST_F()