Index: components/mus/ws/test_utils.cc |
diff --git a/components/mus/ws/test_utils.cc b/components/mus/ws/test_utils.cc |
index 495a46e72b6b1f05248acbc29bf87821af0528f0..9314c1c7520f051e9e070e32fbb70145cf0f0376 100644 |
--- a/components/mus/ws/test_utils.cc |
+++ b/components/mus/ws/test_utils.cc |
@@ -11,7 +11,6 @@ |
#include "components/mus/ws/server_window_surface_manager_test_api.h" |
#include "components/mus/ws/window_manager_access_policy.h" |
#include "components/mus/ws/window_manager_factory_service.h" |
-#include "mojo/converters/geometry/geometry_type_converters.h" |
#include "services/shell/public/interfaces/connector.mojom.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -26,7 +25,7 @@ class TestPlatformDisplay : public PlatformDisplay { |
public: |
explicit TestPlatformDisplay(int32_t* cursor_id_storage) |
: cursor_id_storage_(cursor_id_storage) { |
- display_metrics_.size_in_pixels = mojo::Size::From(gfx::Size(400, 300)); |
+ display_metrics_.size_in_pixels = gfx::Size(400, 300); |
display_metrics_.device_pixel_ratio = 1.f; |
} |
~TestPlatformDisplay() override {} |
@@ -205,16 +204,16 @@ void TestWindowTreeClient::OnTopLevelCreated(uint32_t change_id, |
} |
void TestWindowTreeClient::OnWindowBoundsChanged(uint32_t window, |
- mojo::RectPtr old_bounds, |
- mojo::RectPtr new_bounds) { |
+ const gfx::Rect& old_bounds, |
+ const gfx::Rect& new_bounds) { |
tracker_.OnWindowBoundsChanged(window, std::move(old_bounds), |
std::move(new_bounds)); |
} |
void TestWindowTreeClient::OnClientAreaChanged( |
uint32_t window_id, |
- mojo::InsetsPtr new_client_area, |
- mojo::Array<mojo::RectPtr> new_additional_client_areas) {} |
+ const gfx::Insets& new_client_area, |
+ mojo::Array<gfx::Rect> new_additional_client_areas) {} |
void TestWindowTreeClient::OnTransientWindowAdded( |
uint32_t window_id, |