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

Unified Diff: courgette/encoded_program_fuzz_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/encoded_program.cc ('k') | courgette/encoded_program_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/encoded_program_fuzz_unittest.cc
diff --git a/courgette/encoded_program_fuzz_unittest.cc b/courgette/encoded_program_fuzz_unittest.cc
index ed301f11a0e882f63f77e8b9434165028db5492d..1bf7ff2559ed123f745c28ee5b93933f82e9e82f 100644
--- a/courgette/encoded_program_fuzz_unittest.cc
+++ b/courgette/encoded_program_fuzz_unittest.cc
@@ -14,7 +14,8 @@
#include <stddef.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/test/test_suite.h"
#include "courgette/assembly_program.h"
#include "courgette/base_test_unittest.h"
@@ -43,13 +44,13 @@ void DecodeFuzzTest::FuzzExe(const char* file_name) const {
const void* original_buffer = file1.c_str();
size_t original_length = file1.length();
- scoped_ptr<courgette::AssemblyProgram> program;
+ std::unique_ptr<courgette::AssemblyProgram> program;
const courgette::Status parse_status =
courgette::ParseDetectedExecutable(original_buffer, original_length,
&program);
EXPECT_EQ(courgette::C_OK, parse_status);
- scoped_ptr<courgette::EncodedProgram> encoded;
+ std::unique_ptr<courgette::EncodedProgram> encoded;
const courgette::Status encode_status = Encode(*program, &encoded);
EXPECT_EQ(courgette::C_OK, encode_status);
@@ -173,7 +174,7 @@ void DecodeFuzzTest::FuzzBits(const std::string& base_buffer,
bool DecodeFuzzTest::TryAssemble(const std::string& buffer,
std::string* output) const {
- scoped_ptr<courgette::EncodedProgram> encoded;
+ std::unique_ptr<courgette::EncodedProgram> encoded;
bool result = false;
courgette::SourceStreamSet sources;
« no previous file with comments | « courgette/encoded_program.cc ('k') | courgette/encoded_program_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698