| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_SOURCE_TEST_H_ | 5 #ifndef CC_TEST_BEGIN_FRAME_SOURCE_TEST_H_ |
| 6 #define CC_TEST_BEGIN_FRAME_SOURCE_TEST_H_ | 6 #define CC_TEST_BEGIN_FRAME_SOURCE_TEST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/trace_event/trace_event_argument.h" | 8 #include "base/trace_event/trace_event_argument.h" |
| 10 #include "cc/scheduler/begin_frame_source.h" | 9 #include "cc/scheduler/begin_frame_source.h" |
| 11 #include "cc/test/begin_frame_args_test.h" | 10 #include "cc/test/begin_frame_args_test.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 13 |
| 15 // Macros to help set up expected calls on the MockBeginFrameObserver. | 14 // Macros to help set up expected calls on the MockBeginFrameObserver. |
| 16 #define EXPECT_BEGIN_FRAME_DROP(obs, frame_time, deadline, interval) \ | 15 #define EXPECT_BEGIN_FRAME_DROP(obs, frame_time, deadline, interval) \ |
| 17 EXPECT_CALL((obs), \ | 16 EXPECT_CALL((obs), \ |
| 18 OnBeginFrame(CreateBeginFrameArgsForTesting( \ | 17 OnBeginFrame(CreateBeginFrameArgsForTesting( \ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 MockBeginFrameObserver(); | 63 MockBeginFrameObserver(); |
| 65 virtual ~MockBeginFrameObserver(); | 64 virtual ~MockBeginFrameObserver(); |
| 66 | 65 |
| 67 BeginFrameArgs last_begin_frame_args; | 66 BeginFrameArgs last_begin_frame_args; |
| 68 ::testing::Sequence sequence; | 67 ::testing::Sequence sequence; |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace cc | 70 } // namespace cc |
| 72 | 71 |
| 73 #endif // CC_TEST_BEGIN_FRAME_SOURCE_TEST_H_ | 72 #endif // CC_TEST_BEGIN_FRAME_SOURCE_TEST_H_ |
| OLD | NEW |