| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "mojo/services/gfx/composition/cpp/frame_tracker.h" | 5 #include "mojo/services/gfx/composition/cpp/frame_tracker.h" |
| 6 | 6 |
| 7 #include "mojo/public/cpp/application/application_impl.h" | |
| 8 #include "mojo/public/cpp/application/application_test_base.h" | 7 #include "mojo/public/cpp/application/application_test_base.h" |
| 9 #include "mojo/public/cpp/system/macros.h" | 8 #include "mojo/public/cpp/system/macros.h" |
| 10 | 9 |
| 11 namespace test { | 10 namespace test { |
| 12 | 11 |
| 13 class FrameTrackerTest : public mojo::test::ApplicationTestBase { | 12 class FrameTrackerTest : public mojo::test::ApplicationTestBase { |
| 14 public: | 13 public: |
| 15 FrameTrackerTest() {} | 14 FrameTrackerTest() {} |
| 16 ~FrameTrackerTest() override {} | 15 ~FrameTrackerTest() override {} |
| 17 | 16 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 EXPECT_EQ(10u, Update(22, 10u, 26, 27, 22)); | 176 EXPECT_EQ(10u, Update(22, 10u, 26, 27, 22)); |
| 178 EXPECT_EQ(2u, frame_tracker_.frame_count()); | 177 EXPECT_EQ(2u, frame_tracker_.frame_count()); |
| 179 EXPECT_EQ(22, frame_tracker_.frame_info().frame_time); | 178 EXPECT_EQ(22, frame_tracker_.frame_info().frame_time); |
| 180 EXPECT_EQ(10u, frame_tracker_.frame_info().frame_interval); | 179 EXPECT_EQ(10u, frame_tracker_.frame_info().frame_interval); |
| 181 EXPECT_EQ(26, frame_tracker_.frame_info().frame_deadline); | 180 EXPECT_EQ(26, frame_tracker_.frame_info().frame_deadline); |
| 182 EXPECT_EQ(28, frame_tracker_.frame_info().presentation_time); | 181 EXPECT_EQ(28, frame_tracker_.frame_info().presentation_time); |
| 183 } | 182 } |
| 184 | 183 |
| 185 } // namespace | 184 } // namespace |
| 186 } // namespace mojo | 185 } // namespace mojo |
| OLD | NEW |