| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "services/ui/ws/frame_generator.h" | 5 #include "services/ui/ws/frame_generator.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "cc/output/compositor_frame_sink.h" | 8 #include "cc/output/compositor_frame_sink.h" |
| 9 #include "cc/scheduler/begin_frame_source.h" | 9 #include "cc/scheduler/begin_frame_source.h" |
| 10 #include "cc/test/begin_frame_args_test.cc" | 10 #include "cc/test/begin_frame_args_test.h" |
| 11 #include "cc/test/fake_external_begin_frame_source.h" | 11 #include "cc/test/fake_external_begin_frame_source.h" |
| 12 #include "services/ui/ws/server_window.h" | 12 #include "services/ui/ws/server_window.h" |
| 13 #include "services/ui/ws/server_window_delegate.h" | 13 #include "services/ui/ws/server_window_delegate.h" |
| 14 #include "services/ui/ws/test_utils.h" | 14 #include "services/ui/ws/test_utils.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 namespace ws { | 18 namespace ws { |
| 19 namespace test { | 19 namespace test { |
| 20 | 20 |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 InitWithSurfaceInfo(); | 343 InitWithSurfaceInfo(); |
| 344 | 344 |
| 345 frame_generator()->OnWindowDamaged(); | 345 frame_generator()->OnWindowDamaged(); |
| 346 IssueBeginFrame(); | 346 IssueBeginFrame(); |
| 347 EXPECT_EQ(2, NumberOfFramesReceived()); | 347 EXPECT_EQ(2, NumberOfFramesReceived()); |
| 348 } | 348 } |
| 349 | 349 |
| 350 } // namespace test | 350 } // namespace test |
| 351 } // namespace ws | 351 } // namespace ws |
| 352 } // namespace ui | 352 } // namespace ui |
| OLD | NEW |