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

Unified Diff: courgette/disassembler_win32_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_win32_x64_unittest.cc ('k') | courgette/encode_decode_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/disassembler_win32_x86_unittest.cc
diff --git a/courgette/disassembler_win32_x86_unittest.cc b/courgette/disassembler_win32_x86_unittest.cc
index 3e43273c0807ae0c24cfe87e2a6cc4d9382427df..55b9c4a13dce1f7eefad27bda58ea2a5ac18686e 100644
--- a/courgette/disassembler_win32_x86_unittest.cc
+++ b/courgette/disassembler_win32_x86_unittest.cc
@@ -6,10 +6,10 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "courgette/base_test_unittest.h"
@@ -23,7 +23,7 @@ class DisassemblerWin32X86Test : public BaseTest {
void DisassemblerWin32X86Test::TestExe() const {
std::string file1 = FileContents("setup1.exe");
- scoped_ptr<courgette::DisassemblerWin32X86> disassembler(
+ std::unique_ptr<courgette::DisassemblerWin32X86> disassembler(
new courgette::DisassemblerWin32X86(file1.c_str(), file1.length()));
bool can_parse_header = disassembler->ParseHeader();
@@ -65,7 +65,7 @@ void DisassemblerWin32X86Test::TestExe() const {
void DisassemblerWin32X86Test::TestExe64() const {
std::string file1 = FileContents("pe-64.exe");
- scoped_ptr<courgette::DisassemblerWin32X86> disassembler(
+ std::unique_ptr<courgette::DisassemblerWin32X86> disassembler(
new courgette::DisassemblerWin32X86(file1.c_str(), file1.length()));
bool can_parse_header = disassembler->ParseHeader();
@@ -83,7 +83,7 @@ void DisassemblerWin32X86Test::TestExe64() const {
void DisassemblerWin32X86Test::TestResourceDll() const {
std::string file1 = FileContents("en-US.dll");
- scoped_ptr<courgette::DisassemblerWin32X86> disassembler(
+ std::unique_ptr<courgette::DisassemblerWin32X86> disassembler(
new courgette::DisassemblerWin32X86(file1.c_str(), file1.length()));
bool can_parse_header = disassembler->ParseHeader();
« no previous file with comments | « courgette/disassembler_win32_x64_unittest.cc ('k') | courgette/encode_decode_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698