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

Side by Side Diff: mojo/converters/surfaces/tests/surface_unittest.cc

Issue 640893003: Move mojo/services/public/cpp TypeConverters to mojo/converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore the directory and component structures and target names. Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « mojo/converters/surfaces/tests/BUILD.gn ('k') | mojo/examples/aura_demo/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/quads/render_pass.h" 5 #include "cc/quads/render_pass.h"
6 #include "cc/quads/solid_color_draw_quad.h" 6 #include "cc/quads/solid_color_draw_quad.h"
7 #include "cc/quads/surface_draw_quad.h" 7 #include "cc/quads/surface_draw_quad.h"
8 #include "cc/quads/texture_draw_quad.h" 8 #include "cc/quads/texture_draw_quad.h"
9 #include "gpu/command_buffer/common/mailbox.h" 9 #include "gpu/command_buffer/common/mailbox.h"
10 #include "gpu/command_buffer/common/mailbox_holder.h" 10 #include "gpu/command_buffer/common/mailbox_holder.h"
11 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" 11 #include "mojo/converters/geometry/geometry_type_converters.h"
12 #include "mojo/services/public/cpp/surfaces/surfaces_type_converters.h" 12 #include "mojo/converters/surfaces/surfaces_type_converters.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
15 #include "third_party/skia/include/core/SkXfermode.h" 15 #include "third_party/skia/include/core/SkXfermode.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace { 18 namespace {
19 19
20 TEST(SurfaceLibTest, SurfaceIdConverterNullId) { 20 TEST(SurfaceLibTest, SurfaceIdConverterNullId) {
21 cc::SurfaceId null_id; 21 cc::SurfaceId null_id;
22 cc::SurfaceId round_trip = SurfaceId::From(null_id).To<cc::SurfaceId>(); 22 cc::SurfaceId round_trip = SurfaceId::From(null_id).To<cc::SurfaceId>();
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 cc::ReturnedResource round_trip_resource = 451 cc::ReturnedResource round_trip_resource =
452 mojo_resource.To<cc::ReturnedResource>(); 452 mojo_resource.To<cc::ReturnedResource>();
453 EXPECT_EQ(id, round_trip_resource.id); 453 EXPECT_EQ(id, round_trip_resource.id);
454 EXPECT_EQ(sync_point, round_trip_resource.sync_point); 454 EXPECT_EQ(sync_point, round_trip_resource.sync_point);
455 EXPECT_EQ(count, round_trip_resource.count); 455 EXPECT_EQ(count, round_trip_resource.count);
456 EXPECT_EQ(lost, round_trip_resource.lost); 456 EXPECT_EQ(lost, round_trip_resource.lost);
457 } 457 }
458 458
459 } // namespace 459 } // namespace
460 } // namespace mojo 460 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/converters/surfaces/tests/BUILD.gn ('k') | mojo/examples/aura_demo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698