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

Side by Side Diff: cc/test/ordered_simple_task_runner.h

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « cc/test/layer_tree_test.cc ('k') | cc/test/ordered_simple_task_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CC_TEST_ORDERED_SIMPLE_TASK_RUNNER_H_ 5 #ifndef CC_TEST_ORDERED_SIMPLE_TASK_RUNNER_H_
6 #define CC_TEST_ORDERED_SIMPLE_TASK_RUNNER_H_ 6 #define CC_TEST_ORDERED_SIMPLE_TASK_RUNNER_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/debug/trace_event.h"
15 #include "base/logging.h" 14 #include "base/logging.h"
16 #include "base/test/test_simple_task_runner.h" 15 #include "base/test/test_simple_task_runner.h"
16 #include "base/trace_event/trace_event.h"
17 #include "cc/test/test_now_source.h" 17 #include "cc/test/test_now_source.h"
18 18
19 namespace cc { 19 namespace cc {
20 20
21 // Subclass of TestPendingTask which has a unique ID for every task, supports 21 // Subclass of TestPendingTask which has a unique ID for every task, supports
22 // being used inside a std::set and has debug tracing support. 22 // being used inside a std::set and has debug tracing support.
23 class TestOrderablePendingTask : public base::TestPendingTask { 23 class TestOrderablePendingTask : public base::TestPendingTask {
24 public: 24 public:
25 TestOrderablePendingTask(); 25 TestOrderablePendingTask();
26 TestOrderablePendingTask(const tracked_objects::Location& location, 26 TestOrderablePendingTask(const tracked_objects::Location& location,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 bool inside_run_tasks_until_; 144 bool inside_run_tasks_until_;
145 std::set<TestOrderablePendingTask> pending_tasks_; 145 std::set<TestOrderablePendingTask> pending_tasks_;
146 146
147 private: 147 private:
148 DISALLOW_COPY_AND_ASSIGN(OrderedSimpleTaskRunner); 148 DISALLOW_COPY_AND_ASSIGN(OrderedSimpleTaskRunner);
149 }; 149 };
150 150
151 } // namespace cc 151 } // namespace cc
152 152
153 #endif // CC_TEST_ORDERED_SIMPLE_TASK_RUNNER_H_ 153 #endif // CC_TEST_ORDERED_SIMPLE_TASK_RUNNER_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/ordered_simple_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698