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

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer.cc

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, change iwyu fixes for converted directories to include <memory> 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 | « tools/imagediff/image_diff.cc ('k') | tools/ipc_fuzzer/message_replay/replay_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index 1bb8ed06e635a90488097189cfd70f7c51fe0e62..c1fb9d2e446768017f61b9ccfb1acf7f5fcf9498 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -785,7 +785,7 @@ struct FuzzTraits<cc::RenderPassList> {
size_t count = RandElementCount();
for (size_t i = 0; i < count; ++i) {
- scoped_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create();
+ std::unique_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create();
if (!FuzzParam(render_pass.get(), fuzzer))
return false;
p->push_back(std::move(render_pass));
@@ -928,7 +928,7 @@ struct FuzzTraits<content::SyntheticGesturePacket> {
if (!fuzzer->ShouldGenerate())
return true;
- scoped_ptr<content::SyntheticGestureParams> gesture_params;
+ std::unique_ptr<content::SyntheticGestureParams> gesture_params;
switch (RandInRange(
content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX + 1)) {
case content::SyntheticGestureParams::GestureType::
« no previous file with comments | « tools/imagediff/image_diff.cc ('k') | tools/ipc_fuzzer/message_replay/replay_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698