summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_unit_test.h
diff options
context:
space:
mode:
authorDavid Sehr <sehr@google.com>2018-06-28 16:59:00 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-06-28 16:59:00 +0000
commitd20a4d76c33cd6e609ad6b1b3cde09fdcbdde05c (patch)
treeccbf6e69ca17f4677186f4e148e1f9baf8bc7ae4 /compiler/optimizing/optimizing_unit_test.h
parentb5271dd44a30f498689e503340d3c8d01bf31f07 (diff)
parentb095f022a9683a9123018c01e22595cf969fd88b (diff)
Merge "Refactor DexFile ownership"
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
-rw-r--r--compiler/optimizing/optimizing_unit_test.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h
index a9bc5664c0..a627f65ed4 100644
--- a/compiler/optimizing/optimizing_unit_test.h
+++ b/compiler/optimizing/optimizing_unit_test.h
@@ -129,12 +129,10 @@ class OptimizingUnitTestHelper {
// Create the dex file based on the fake data. Call the constructor so that we can use virtual
// functions. Don't use the arena for the StandardDexFile otherwise the dex location leaks.
dex_files_.emplace_back(new StandardDexFile(
- dex_data,
- sizeof(StandardDexFile::Header),
+ std::make_unique<NonOwningDexFileContainer>(dex_data, sizeof(StandardDexFile::Header)),
"no_location",
/*location_checksum*/ 0,
- /*oat_dex_file*/ nullptr,
- /*container*/ nullptr));
+ /*oat_dex_file*/ nullptr));
return new (allocator) HGraph(
allocator,