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

Side by Side Diff: third_party/WebKit/Source/platform/TimerTest.cpp

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "platform/Timer.h" 5 #include "platform/Timer.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <queue> 8 #include <queue>
9 #include "platform/scheduler/base/task_queue_impl.h" 9 #include "platform/scheduler/base/task_queue_impl.h"
10 #include "platform/scheduler/child/web_scheduler.h"
10 #include "platform/scheduler/child/web_task_runner_impl.h" 11 #include "platform/scheduler/child/web_task_runner_impl.h"
11 #include "platform/scheduler/renderer/renderer_scheduler_impl.h" 12 #include "platform/scheduler/renderer/renderer_scheduler_impl.h"
13 #include "platform/scheduler/renderer/web_view_scheduler.h"
12 #include "platform/testing/TestingPlatformSupport.h" 14 #include "platform/testing/TestingPlatformSupport.h"
13 #include "platform/wtf/CurrentTime.h" 15 #include "platform/wtf/CurrentTime.h"
14 #include "platform/wtf/PtrUtil.h" 16 #include "platform/wtf/PtrUtil.h"
15 #include "platform/wtf/RefCounted.h" 17 #include "platform/wtf/RefCounted.h"
16 #include "public/platform/Platform.h" 18 #include "public/platform/Platform.h"
17 #include "public/platform/WebScheduler.h"
18 #include "public/platform/WebThread.h" 19 #include "public/platform/WebThread.h"
19 #include "public/platform/WebViewScheduler.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 using testing::ElementsAre; 23 using testing::ElementsAre;
24 24
25 namespace blink { 25 namespace blink {
26 namespace { 26 namespace {
27 27
28 class TimerTest : public testing::Test { 28 class TimerTest : public testing::Test {
29 public: 29 public:
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 &TimerTest::CountingTask); 721 &TimerTest::CountingTask);
722 722
723 platform_->RunUntilIdle(); 723 platform_->RunUntilIdle();
724 EXPECT_TRUE(!run_times_.size()); 724 EXPECT_TRUE(!run_times_.size());
725 EXPECT_TRUE(task_runner1->IsEmpty()); 725 EXPECT_TRUE(task_runner1->IsEmpty());
726 EXPECT_TRUE(task_runner2->IsEmpty()); 726 EXPECT_TRUE(task_runner2->IsEmpty());
727 } 727 }
728 728
729 } // namespace 729 } // namespace
730 } // namespace blink 730 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Timer.cpp ('k') | third_party/WebKit/Source/platform/WebScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698