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

Side by Side Diff: third_party/WebKit/public/platform/scheduler/test/mock_renderer_scheduler.h

Issue 2812313002: [scheduler] Remove blink::scheduler::TaskQueue from public API. (Closed)
Patch Set: Rebased & addressed skyostil@'s comment Created 3 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/platform/scheduler/test/fake_renderer_scheduler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_MOCK_RENDERER_SCHEDULE R_H_ 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_MOCK_RENDERER_SCHEDULE R_H_
6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_MOCK_RENDERER_SCHEDULE R_H_ 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_MOCK_RENDERER_SCHEDULE R_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/output/begin_frame_args.h" 9 #include "cc/output/begin_frame_args.h"
10 #include "public/platform/scheduler/renderer/renderer_scheduler.h" 10 #include "public/platform/scheduler/renderer/renderer_scheduler.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace blink { 13 namespace blink {
14 namespace scheduler { 14 namespace scheduler {
15 15
16 class MockRendererScheduler : public RendererScheduler { 16 class MockRendererScheduler : public RendererScheduler {
17 public: 17 public:
18 MockRendererScheduler() = default; 18 MockRendererScheduler() = default;
19 ~MockRendererScheduler() override = default; 19 ~MockRendererScheduler() override = default;
20 20
21 MOCK_METHOD0(CreateMainThread, std::unique_ptr<blink::WebThread>()); 21 MOCK_METHOD0(CreateMainThread, std::unique_ptr<blink::WebThread>());
22 MOCK_METHOD0(DefaultTaskRunner, scoped_refptr<TaskQueue>()); 22 MOCK_METHOD0(DefaultTaskRunner,
23 MOCK_METHOD0(CompositorTaskRunner, scoped_refptr<TaskQueue>()); 23 scoped_refptr<base::SingleThreadTaskRunner>());
24 MOCK_METHOD0(LoadingTaskRunner, scoped_refptr<TaskQueue>()); 24 MOCK_METHOD0(CompositorTaskRunner,
25 scoped_refptr<base::SingleThreadTaskRunner>());
26 MOCK_METHOD0(LoadingTaskRunner,
27 scoped_refptr<base::SingleThreadTaskRunner>());
25 MOCK_METHOD0(IdleTaskRunner, 28 MOCK_METHOD0(IdleTaskRunner,
26 scoped_refptr<blink::scheduler::SingleThreadIdleTaskRunner>()); 29 scoped_refptr<blink::scheduler::SingleThreadIdleTaskRunner>());
27 MOCK_METHOD0(TimerTaskRunner, scoped_refptr<TaskQueue>()); 30 MOCK_METHOD0(TimerTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>());
28 MOCK_METHOD1(NewLoadingTaskRunner,
29 scoped_refptr<TaskQueue>(TaskQueue::QueueType));
30 MOCK_METHOD1(NewTimerTaskRunner,
31 scoped_refptr<TaskQueue>(TaskQueue::QueueType));
32 MOCK_METHOD1(NewUnthrottledTaskRunner,
33 scoped_refptr<TaskQueue>(TaskQueue::QueueType));
34 MOCK_METHOD0(NewRenderWidgetSchedulingState, 31 MOCK_METHOD0(NewRenderWidgetSchedulingState,
35 std::unique_ptr<RenderWidgetSchedulingState>()); 32 std::unique_ptr<RenderWidgetSchedulingState>());
36 MOCK_METHOD1(WillBeginFrame, void(const cc::BeginFrameArgs&)); 33 MOCK_METHOD1(WillBeginFrame, void(const cc::BeginFrameArgs&));
37 MOCK_METHOD0(BeginFrameNotExpectedSoon, void()); 34 MOCK_METHOD0(BeginFrameNotExpectedSoon, void());
38 MOCK_METHOD0(DidCommitFrameToCompositor, void()); 35 MOCK_METHOD0(DidCommitFrameToCompositor, void());
39 MOCK_METHOD2(DidHandleInputEventOnCompositorThread, 36 MOCK_METHOD2(DidHandleInputEventOnCompositorThread,
40 void(const WebInputEvent&, InputEventState)); 37 void(const WebInputEvent&, InputEventState));
41 MOCK_METHOD2(DidHandleInputEventOnMainThread, 38 MOCK_METHOD2(DidHandleInputEventOnMainThread,
42 void(const WebInputEvent&, WebInputEventResult)); 39 void(const WebInputEvent&, WebInputEventResult));
43 MOCK_METHOD0(DidAnimateForInputOnCompositorThread, void()); 40 MOCK_METHOD0(DidAnimateForInputOnCompositorThread, void());
(...skipping 19 matching lines...) Expand all
63 MOCK_METHOD1(MainThreadSeemsUnresponsive, bool(base::TimeDelta)); 60 MOCK_METHOD1(MainThreadSeemsUnresponsive, bool(base::TimeDelta));
64 61
65 private: 62 private:
66 DISALLOW_COPY_AND_ASSIGN(MockRendererScheduler); 63 DISALLOW_COPY_AND_ASSIGN(MockRendererScheduler);
67 }; 64 };
68 65
69 } // namespace scheduler 66 } // namespace scheduler
70 } // namespace blink 67 } // namespace blink
71 68
72 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_MOCK_RENDERER_SCHED ULER_H_ 69 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_MOCK_RENDERER_SCHED ULER_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/scheduler/test/fake_renderer_scheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698