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

Unified Diff: services/ui/ws/test_utils.h

Issue 2099893002: Mus: Fixes rendering of transparent containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix namespace comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index cabef6e3c5b95958174b35a4f78df67090cea008..a177c611a9a5e0d9ceedb84c5c0a13022fce428d 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -244,6 +244,26 @@ class TestPlatformDisplayFactory : public PlatformDisplayFactory {
// -----------------------------------------------------------------------------
+// A stub implementation of FrameGeneratorDelegate.
+class TestFrameGeneratorDelegate : public FrameGeneratorDelegate {
+ public:
+ explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root);
+ ~TestFrameGeneratorDelegate() override;
+
+ // FrameGeneratorDelegate:
+ ServerWindow* GetRootWindow() override;
+ void OnCompositorFrameDrawn() override {}
+ const ViewportMetrics& GetViewportMetrics() override;
+
+ private:
+ std::unique_ptr<ServerWindow> root_;
+ ViewportMetrics metrics_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate);
+};
+
+// -----------------------------------------------------------------------------
+
class TestWindowManager : public mojom::WindowManager {
public:
TestWindowManager()
« no previous file with comments | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698