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

Side by Side Diff: cc/test/test_now_source.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/render_pass_test_common.cc ('k') | cc/trees/layer_tree_host.h » ('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_TEST_NOW_SOURCE_H_ 5 #ifndef CC_TEST_TEST_NOW_SOURCE_H_
6 #define CC_TEST_TEST_NOW_SOURCE_H_ 6 #define CC_TEST_TEST_NOW_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/debug/trace_event.h"
12 #include "base/debug/trace_event_argument.h"
13 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/trace_event/trace_event.h"
13 #include "base/trace_event/trace_event_argument.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class TestNowSource : public base::RefCounted<TestNowSource> { 17 class TestNowSource : public base::RefCounted<TestNowSource> {
18 public: 18 public:
19 static scoped_refptr<TestNowSource> Create(); 19 static scoped_refptr<TestNowSource> Create();
20 static scoped_refptr<TestNowSource> Create(int64_t initial); 20 static scoped_refptr<TestNowSource> Create(int64_t initial);
21 static scoped_refptr<TestNowSource> Create(base::TimeTicks initial); 21 static scoped_refptr<TestNowSource> Create(base::TimeTicks initial);
22 22
23 virtual void Reset(); 23 virtual void Reset();
(...skipping 27 matching lines...) Expand all
51 }; 51 };
52 52
53 // gtest pretty printing functions 53 // gtest pretty printing functions
54 void PrintTo(const scoped_refptr<TestNowSource>& src, ::std::ostream* os); 54 void PrintTo(const scoped_refptr<TestNowSource>& src, ::std::ostream* os);
55 ::std::ostream& operator<<(::std::ostream& os, 55 ::std::ostream& operator<<(::std::ostream& os,
56 const scoped_refptr<TestNowSource>& src); 56 const scoped_refptr<TestNowSource>& src);
57 57
58 } // namespace cc 58 } // namespace cc
59 59
60 #endif // CC_TEST_TEST_NOW_SOURCE_H_ 60 #endif // CC_TEST_TEST_NOW_SOURCE_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698