| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |