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

Unified Diff: components/mus/public/cpp/surfaces/tests/surface_unittest.cc

Issue 2028573003: Implement gfx::Transform StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing build file Created 4 years, 7 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 | « components/mus/public/cpp/surfaces/tests/BUILD.gn ('k') | components/mus/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/surfaces/tests/surface_unittest.cc
diff --git a/components/mus/public/cpp/surfaces/tests/surface_unittest.cc b/components/mus/public/cpp/surfaces/tests/surface_unittest.cc
index ed00af00cf1825d71089262b25e7848cd522a82e..d2ebbeb4959a4fcdfcb3fda06fd49fafe7ce6d0c 100644
--- a/components/mus/public/cpp/surfaces/tests/surface_unittest.cc
+++ b/components/mus/public/cpp/surfaces/tests/surface_unittest.cc
@@ -20,7 +20,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkXfermode.h"
-#include "ui/gfx/mojo/transform_type_converters.h"
using mus::mojom::Color;
using mus::mojom::ColorPtr;
@@ -217,8 +216,7 @@ TEST(SurfaceLibTest, SharedQuadState) {
SharedQuadStatePtr mus_sqs = SharedQuadState::From(*sqs);
ASSERT_FALSE(mus_sqs.is_null());
- EXPECT_TRUE(Transform::From(quad_to_target_transform)
- .Equals(mus_sqs->quad_to_target_transform));
+ EXPECT_EQ(quad_to_target_transform, mus_sqs->quad_to_target_transform);
EXPECT_EQ(quad_layer_bounds, mus_sqs->quad_layer_bounds);
EXPECT_EQ(visible_quad_layer_rect, mus_sqs->visible_quad_layer_rect);
EXPECT_EQ(clip_rect, mus_sqs->clip_rect);
@@ -300,8 +298,7 @@ TEST(SurfaceLibTest, RenderPass) {
EXPECT_EQ(6u, mus_pass->id.index);
EXPECT_EQ(output_rect, mus_pass->output_rect);
EXPECT_EQ(damage_rect, mus_pass->damage_rect);
- EXPECT_TRUE(Transform::From(transform_to_root_target)
- .Equals(mus_pass->transform_to_root_target));
+ EXPECT_EQ(transform_to_root_target, mus_pass->transform_to_root_target);
EXPECT_EQ(has_transparent_background, mus_pass->has_transparent_background);
ASSERT_EQ(1u, mus_pass->shared_quad_states.size());
ASSERT_EQ(3u, mus_pass->quads.size());
« no previous file with comments | « components/mus/public/cpp/surfaces/tests/BUILD.gn ('k') | components/mus/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698