diff options
author | 2011-08-30 13:27:07 -0700 | |
---|---|---|
committer | 2011-08-30 13:27:45 -0700 | |
commit | 90a3369d3b6238f1a4c9b19ca68978dab1c39bc4 (patch) | |
tree | b66ec9b2cced5713bd5902c499d57b533d2e7a9a /src/exception_test.cc | |
parent | 34023801bd544e613d6e85c9a5b2e743f3710e8f (diff) |
Switch to UniquePtr.
Only one use of scoped_ptr was incorrect (but then again, I spent an afternoon
with valgrind finding and fixing them just last week).
Change-Id: If5ec1c8aa0794a4f652bfd1c0fffccf95facdc40
Diffstat (limited to 'src/exception_test.cc')
-rw-r--r-- | src/exception_test.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/exception_test.cc b/src/exception_test.cc index c384bc1704..3611b6722d 100644 --- a/src/exception_test.cc +++ b/src/exception_test.cc @@ -2,14 +2,15 @@ #include <sys/mman.h> +#include "UniquePtr.h" #include "assembler.h" #include "class_linker.h" #include "common_test.h" #include "dex_file.h" +#include "gtest/gtest.h" #include "jni_compiler.h" #include "runtime.h" #include "thread.h" -#include "gtest/gtest.h" namespace art { @@ -66,7 +67,7 @@ class ExceptionTest : public CommonTest { CommonTest::SetUp(); dex_.reset(OpenDexFileBase64(kMyClassExceptionHandleDex, "kMyClassExceptionHandleDex")); - ASSERT_TRUE(dex_ != NULL); + ASSERT_TRUE(dex_.get() != NULL); const PathClassLoader* class_loader = AllocPathClassLoader(dex_.get()); ASSERT_TRUE(class_loader != NULL); my_klass_ = class_linker_->FindClass("Ljava/lang/MyClass;", class_loader); @@ -94,7 +95,7 @@ class ExceptionTest : public CommonTest { return DexFile::CatchHandlerItem(); } - scoped_ptr<const DexFile> dex_; + UniquePtr<const DexFile> dex_; Method* method_f_; Method* method_g_; |