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

Side by Side Diff: services/ui/ws/frame_generator_unittest.cc

Issue 2797453002: Rename DisplayCompositor to MojoFrameSinkManager. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 | « services/ui/ws/display_client_compositor_frame_sink.h ('k') | services/ui/ws/gpu_host.h » ('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 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.cc"
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
21 // TestServerWindowDelegate implements ServerWindowDelegate and returns nullptrs 21 // TestServerWindowDelegate implements ServerWindowDelegate and returns nullptrs
22 // when either of the methods from the interface is called. 22 // when either of the methods from the interface is called.
23 class TestServerWindowDelegate : public ServerWindowDelegate { 23 class TestServerWindowDelegate : public ServerWindowDelegate {
24 public: 24 public:
25 TestServerWindowDelegate() {} 25 TestServerWindowDelegate() {}
26 ~TestServerWindowDelegate() override {} 26 ~TestServerWindowDelegate() override {}
27 27
28 // ServerWindowDelegate implementation: 28 // ServerWindowDelegate implementation:
29 cc::mojom::DisplayCompositor* GetDisplayCompositor() override { 29 cc::mojom::FrameSinkManager* GetFrameSinkManager() override {
30 return nullptr; 30 return nullptr;
31 } 31 }
32 32
33 ServerWindow* GetRootWindow(const ServerWindow* window) override { 33 ServerWindow* GetRootWindow(const ServerWindow* window) override {
34 return nullptr; 34 return nullptr;
35 } 35 }
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(TestServerWindowDelegate); 38 DISALLOW_COPY_AND_ASSIGN(TestServerWindowDelegate);
39 }; 39 };
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « services/ui/ws/display_client_compositor_frame_sink.h ('k') | services/ui/ws/gpu_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698