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

Side by Side Diff: components/scheduler/child/scheduler_helper_unittest.cc

Issue 1374653003: scheduler: Add a base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed gn clobber build. Created 5 years, 2 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 unified diff | Download patch
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/scheduler/child/scheduler_helper.h" 5 #include "components/scheduler/child/scheduler_helper.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/test/simple_test_tick_clock.h" 8 #include "base/test/simple_test_tick_clock.h"
9 #include "cc/test/ordered_simple_task_runner.h" 9 #include "cc/test/ordered_simple_task_runner.h"
10 #include "components/scheduler/base/task_queue.h"
11 #include "components/scheduler/base/test_time_source.h"
10 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h" 12 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h"
11 #include "components/scheduler/child/task_queue.h"
12 #include "components/scheduler/child/test_time_source.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using testing::_; 16 using testing::_;
17 using testing::AnyNumber; 17 using testing::AnyNumber;
18 using testing::Invoke; 18 using testing::Invoke;
19 using testing::Return; 19 using testing::Return;
20 20
21 namespace scheduler { 21 namespace scheduler {
22 22
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 scoped_refptr<TaskQueue> task_queue = 200 scoped_refptr<TaskQueue> task_queue =
201 scheduler_helper_->NewTaskQueue(TaskQueue::Spec("test_queue")); 201 scheduler_helper_->NewTaskQueue(TaskQueue::Spec("test_queue"));
202 202
203 EXPECT_CALL(observer, OnUnregisterTaskQueue(_)).Times(1); 203 EXPECT_CALL(observer, OnUnregisterTaskQueue(_)).Times(1);
204 task_queue->UnregisterTaskQueue(); 204 task_queue->UnregisterTaskQueue();
205 205
206 scheduler_helper_->SetObserver(nullptr); 206 scheduler_helper_->SetObserver(nullptr);
207 } 207 }
208 208
209 } // namespace scheduler 209 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/scheduler_helper.cc ('k') | components/scheduler/child/scheduler_task_runner_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698