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

Unified Diff: cc/trees/blocking_task_runner_unittest.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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 | « cc/trees/blocking_task_runner.cc ('k') | cc/trees/channel_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/blocking_task_runner_unittest.cc
diff --git a/cc/trees/blocking_task_runner_unittest.cc b/cc/trees/blocking_task_runner_unittest.cc
index f837a7ccd4808192fca15c6547cd74e258cf28f9..86bde3dc23512c3943386d41d958959ed7ee8baf 100644
--- a/cc/trees/blocking_task_runner_unittest.cc
+++ b/cc/trees/blocking_task_runner_unittest.cc
@@ -21,7 +21,7 @@ void TestTask(bool* result) {
TEST(BlockingTaskRunnerTest, NoCapture) {
bool did_run = false;
- scoped_ptr<BlockingTaskRunner> runner(
+ std::unique_ptr<BlockingTaskRunner> runner(
BlockingTaskRunner::Create(base::ThreadTaskRunnerHandle::Get()));
runner->PostTask(FROM_HERE, base::Bind(&TestTask, &did_run));
EXPECT_FALSE(did_run);
@@ -31,7 +31,7 @@ TEST(BlockingTaskRunnerTest, NoCapture) {
TEST(BlockingTaskRunnerTest, Capture) {
bool did_run = false;
- scoped_ptr<BlockingTaskRunner> runner(
+ std::unique_ptr<BlockingTaskRunner> runner(
BlockingTaskRunner::Create(base::ThreadTaskRunnerHandle::Get()));
{
BlockingTaskRunner::CapturePostTasks capture(runner.get());
« no previous file with comments | « cc/trees/blocking_task_runner.cc ('k') | cc/trees/channel_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698