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

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

Issue 2686193002: [cc] facilitate use of BeginFrameAcks in tests. (Closed)
Patch Set: sync Created 3 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/output/begin_frame_args.cc ('k') | cc/test/begin_frame_args_test.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_BEGIN_FRAME_ARGS_TEST_H_ 5 #ifndef CC_TEST_BEGIN_FRAME_ARGS_TEST_H_
6 #define CC_TEST_BEGIN_FRAME_ARGS_TEST_H_ 6 #define CC_TEST_BEGIN_FRAME_ARGS_TEST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <iosfwd> 10 #include <iosfwd>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Allow "EXPECT_EQ(args1, args2);" 56 // Allow "EXPECT_EQ(args1, args2);"
57 // We don't define operator!= because EXPECT_NE(args1, args2) isn't all that 57 // We don't define operator!= because EXPECT_NE(args1, args2) isn't all that
58 // sensible. 58 // sensible.
59 bool operator==(const BeginFrameArgs& lhs, const BeginFrameArgs& rhs); 59 bool operator==(const BeginFrameArgs& lhs, const BeginFrameArgs& rhs);
60 60
61 // Allow gtest to pretty print begin frame args. 61 // Allow gtest to pretty print begin frame args.
62 ::std::ostream& operator<<(::std::ostream& os, const BeginFrameArgs& args); 62 ::std::ostream& operator<<(::std::ostream& os, const BeginFrameArgs& args);
63 void PrintTo(const BeginFrameArgs& args, ::std::ostream* os); 63 void PrintTo(const BeginFrameArgs& args, ::std::ostream* os);
64 64
65 // Allow "EXPECT_EQ(ack1, ack2);"
66 bool operator==(const BeginFrameAck& lhs, const BeginFrameAck& rhs);
67
68 // Allow gtest to pretty print BeginFrameAcks.
69 ::std::ostream& operator<<(::std::ostream& os, const BeginFrameAck& ack);
70 void PrintTo(const BeginFrameAck& ack, ::std::ostream* os);
71
65 } // namespace cc 72 } // namespace cc
66 73
67 #endif // CC_TEST_BEGIN_FRAME_ARGS_TEST_H_ 74 #endif // CC_TEST_BEGIN_FRAME_ARGS_TEST_H_
OLDNEW
« no previous file with comments | « cc/output/begin_frame_args.cc ('k') | cc/test/begin_frame_args_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698