Chromium Code Reviews

Side by Side Diff: components/gcm_driver/gcm_delayed_task_controller_unittest.cc

Issue 1852953002: Fix a bunch of IWYU violators that don't include scoped_ptr.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/gcm_driver/gcm_delayed_task_controller.h" 5 #include "components/gcm_driver/gcm_delayed_task_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace gcm { 11 namespace gcm {
11 12
12 class GCMDelayedTaskControllerTest : public testing::Test { 13 class GCMDelayedTaskControllerTest : public testing::Test {
13 public: 14 public:
14 GCMDelayedTaskControllerTest(); 15 GCMDelayedTaskControllerTest();
15 ~GCMDelayedTaskControllerTest() override; 16 ~GCMDelayedTaskControllerTest() override;
16 17
17 void TestTask(); 18 void TestTask();
(...skipping 34 matching lines...)
52 controller()->AddTask(base::Bind(&GCMDelayedTaskControllerTest::TestTask, 53 controller()->AddTask(base::Bind(&GCMDelayedTaskControllerTest::TestTask,
53 base::Unretained(this))); 54 base::Unretained(this)));
54 controller()->AddTask(base::Bind(&GCMDelayedTaskControllerTest::TestTask, 55 controller()->AddTask(base::Bind(&GCMDelayedTaskControllerTest::TestTask,
55 base::Unretained(this))); 56 base::Unretained(this)));
56 57
57 controller()->SetReady(); 58 controller()->SetReady();
58 EXPECT_EQ(2, number_of_triggered_tasks()); 59 EXPECT_EQ(2, number_of_triggered_tasks());
59 } 60 }
60 61
61 } // namespace gcm 62 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/crypto/gcm_encryption_provider.h ('k') | components/guest_view/renderer/guest_view_request.h » ('j') | no next file with comments »

Powered by Google App Engine