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

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

Issue 2715533005: Make mus_demo_unittests work with multiple root windows (Closed)
Patch Set: Add a unit test for multiple windows. Created 3 years, 10 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
Index: services/ui/ws/window_server_test_impl.h
diff --git a/services/ui/ws/window_server_test_impl.h b/services/ui/ws/window_server_test_impl.h
index 9a6dc788ee4282d219a0b5073abd6834149cf1fd..a4e9ee8298ab6ad5c9c62befe423fce46fced075 100644
--- a/services/ui/ws/window_server_test_impl.h
+++ b/services/ui/ws/window_server_test_impl.h
@@ -5,6 +5,8 @@
#ifndef SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_
#define SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_
+#include <map>
+
#include "services/ui/public/interfaces/window_server_test.mojom.h"
namespace ui {
@@ -20,15 +22,16 @@ class WindowServerTestImpl : public mojom::WindowServerTest {
private:
void OnWindowPaint(const std::string& name,
- const EnsureClientHasDrawnWindowCallback& cb,
+ const EnsureClientHasDrawnRootWindowsCallback& cb,
ServerWindow* window);
// mojom::WindowServerTest:
- void EnsureClientHasDrawnWindow(
+ void EnsureClientHasDrawnRootWindows(
const std::string& client_name,
- const EnsureClientHasDrawnWindowCallback& callback) override;
+ const EnsureClientHasDrawnRootWindowsCallback& callback) override;
WindowServer* window_server_;
+ std::map<std::string, unsigned> painted_window_roots_;
DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl);
};

Powered by Google App Engine
This is Rietveld 408576698