Index: courgette/disassembler_elf_32_x86_unittest.cc |
diff --git a/courgette/disassembler_elf_32_x86_unittest.cc b/courgette/disassembler_elf_32_x86_unittest.cc |
index 9c267ec1e58caee3f3bbb81513aa9de3a95b9b99..59fa3e6f3ea083350377f7b40618afb9b1308e64 100644 |
--- a/courgette/disassembler_elf_32_x86_unittest.cc |
+++ b/courgette/disassembler_elf_32_x86_unittest.cc |
@@ -8,9 +8,9 @@ |
#include <stdint.h> |
#include <algorithm> |
+#include <memory> |
#include <string> |
-#include "base/memory/scoped_ptr.h" |
#include "courgette/assembly_program.h" |
#include "courgette/base_test_unittest.h" |
#include "courgette/image_utils.h" |
@@ -32,7 +32,7 @@ void DisassemblerElf32X86Test::TestExe(const char* file_name, |
using TypedRVA = DisassemblerElf32::TypedRVA; |
std::string file1 = FileContents(file_name); |
- scoped_ptr<DisassemblerElf32X86> disassembler( |
+ std::unique_ptr<DisassemblerElf32X86> disassembler( |
new DisassemblerElf32X86(file1.c_str(), file1.length())); |
bool can_parse_header = disassembler->ParseHeader(); |
@@ -51,7 +51,7 @@ void DisassemblerElf32X86Test::TestExe(const char* file_name, |
EXPECT_EQ('L', offset_p[2]); |
EXPECT_EQ('F', offset_p[3]); |
- scoped_ptr<AssemblyProgram> program(new AssemblyProgram(EXE_ELF_32_X86)); |
+ std::unique_ptr<AssemblyProgram> program(new AssemblyProgram(EXE_ELF_32_X86)); |
EXPECT_TRUE(disassembler->Disassemble(program.get())); |