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

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

Issue 2378883002: mus ws: Consistently use mojom::Cursor instead of int32_t. (Closed)
Patch Set: Created 4 years, 3 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/server_window_observer.h ('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 f1cf568bc7fa337b85874e9a5d54ac1ebd73ae92..29112de732d0a885d38e61d059e3884047e930e1 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -261,14 +261,14 @@ class TestPlatformDisplayFactory : public PlatformDisplayFactory {
public:
static const int64_t kFirstDisplayId;
- explicit TestPlatformDisplayFactory(int32_t* cursor_id_storage);
+ explicit TestPlatformDisplayFactory(mojom::Cursor* cursor_storage);
~TestPlatformDisplayFactory();
// PlatformDisplayFactory:
PlatformDisplay* CreatePlatformDisplay() override;
private:
- int32_t* cursor_id_storage_;
+ mojom::Cursor* cursor_storage_;
int64_t next_display_id_;
DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory);
@@ -575,7 +575,7 @@ class WindowServerTestHelper {
~WindowServerTestHelper();
WindowServer* window_server() { return window_server_.get(); }
- int32_t cursor_id() const { return cursor_id_; }
+ mojom::Cursor cursor() const { return cursor_id_; }
TestWindowServerDelegate* window_server_delegate() {
return &window_server_delegate_;
@@ -583,7 +583,7 @@ class WindowServerTestHelper {
base::MessageLoop* message_loop() { return &message_loop_; }
private:
- int32_t cursor_id_;
+ mojom::Cursor cursor_id_;
TestPlatformDisplayFactory platform_display_factory_;
TestWindowServerDelegate window_server_delegate_;
std::unique_ptr<WindowServer> window_server_;
@@ -617,7 +617,7 @@ class WindowEventTargetingHelper {
// Sets the task runner for |message_loop_|
void SetTaskRunner(scoped_refptr<base::SingleThreadTaskRunner> task_runner);
- int32_t cursor_id() const { return ws_test_helper_.cursor_id(); }
+ mojom::Cursor cursor() const { return ws_test_helper_.cursor(); }
Display* display() { return display_; }
TestWindowTreeBinding* last_binding() {
return ws_test_helper_.window_server_delegate()->last_binding();
« no previous file with comments | « services/ui/ws/server_window_observer.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698