diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-02-18 02:01:08 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-02-18 02:01:10 +0000 |
commit | 39aaa8007bdb3978d056b32ce8292d23ff330fa6 (patch) | |
tree | 7980a7b2223882d2d88b53a222bfcb2836ea3002 /compiler/driver/compiler_driver_test.cc | |
parent | ea36aaf1ebd5342e24ea414d0b797b25eb8d7936 (diff) | |
parent | d0af56cdb1eaebea403e382257bdc14d7b7fdaa4 (diff) |
Merge "Make dex2oat support profiles passed to non profile filters"
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
-rw-r--r-- | compiler/driver/compiler_driver_test.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc index 1e4ca16844..3879631053 100644 --- a/compiler/driver/compiler_driver_test.cc +++ b/compiler/driver/compiler_driver_test.cc @@ -246,6 +246,11 @@ class CompilerDriverProfileTest : public CompilerDriverTest { return &profile_info_; } + CompilerFilter::Filter GetCompilerFilter() const OVERRIDE { + // Use a profile based filter. + return CompilerFilter::kSpeedProfile; + } + std::unordered_set<std::string> GetExpectedMethodsForClass(const std::string& clazz) { if (clazz == "Main") { return std::unordered_set<std::string>({ @@ -304,7 +309,6 @@ TEST_F(CompilerDriverProfileTest, ProfileGuidedCompilation) { // Need to enable dex-file writability. Methods rejected to be compiled will run through the // dex-to-dex compiler. - ProfileCompilationInfo info; for (const DexFile* dex_file : GetDexFiles(class_loader)) { ASSERT_TRUE(dex_file->EnableWrite()); } |