Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2476)

Unified Diff: courgette/disassembler_elf_32_x86_unittest.cc

Issue 1855133002: convert //courgette to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment in memory_allocator.h Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/disassembler_elf_32_x86.cc ('k') | courgette/disassembler_win32_x64_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
« no previous file with comments | « courgette/disassembler_elf_32_x86.cc ('k') | courgette/disassembler_win32_x64_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698