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

Side by Side Diff: cc/raster/synchronous_task_graph_runner_unittest.cc

Issue 1449133002: TaskGraphRunner refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 5 years 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 | « cc/raster/synchronous_task_graph_runner.cc ('k') | cc/raster/task_graph_runner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/threading/simple_thread.h"
6 #include "cc/raster/synchronous_task_graph_runner.h"
7 #include "cc/test/task_graph_runner_test_template.h"
8
9 namespace cc {
10 namespace {
11
12 class SynchronousTaskGraphRunnerTestDelegate {
13 public:
14 SynchronousTaskGraphRunnerTestDelegate() {}
15
16 void StartTaskGraphRunner() {}
17
18 TaskGraphRunner* GetTaskGraphRunner() {
19 return &synchronous_task_graph_runner_;
20 }
21
22 void StopTaskGraphRunner() { synchronous_task_graph_runner_.RunUntilIdle(); }
23
24 private:
25 SynchronousTaskGraphRunner synchronous_task_graph_runner_;
26 };
27
28 INSTANTIATE_TYPED_TEST_CASE_P(SynchronousTaskGraphRunner,
29 TaskGraphRunnerTest,
30 SynchronousTaskGraphRunnerTestDelegate);
31 INSTANTIATE_TYPED_TEST_CASE_P(SynchronousTaskGraphRunner,
32 SingleThreadTaskGraphRunnerTest,
33 SynchronousTaskGraphRunnerTestDelegate);
34
35 } // namespace
36 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/synchronous_task_graph_runner.cc ('k') | cc/raster/task_graph_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698