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

Side by Side Diff: services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc

Issue 2850733003: Remove BitmapArray. (Closed)
Patch Set: Remove more headers. Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "services/ui/public/interfaces/cursor/cursor_struct_traits.h" 5 #include "services/ui/public/interfaces/cursor/cursor_struct_traits.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "mojo/common/common_custom_types_struct_traits.h" 8 #include "mojo/common/common_custom_types_struct_traits.h"
9 #include "mojo/public/cpp/bindings/binding_set.h" 9 #include "mojo/public/cpp/bindings/binding_set.h"
10 #include "services/ui/public/interfaces/cursor/cursor.mojom.h" 10 #include "services/ui/public/interfaces/cursor/cursor.mojom.h"
11 #include "skia/public/interfaces/bitmap_array_struct_traits.h"
12 #include "skia/public/interfaces/bitmap_skbitmap_struct_traits.h" 11 #include "skia/public/interfaces/bitmap_skbitmap_struct_traits.h"
13 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
14 #include "ui/base/cursor/cursor.h" 13 #include "ui/base/cursor/cursor.h"
15 #include "ui/base/cursor/cursor_data.h" 14 #include "ui/base/cursor/cursor_data.h"
16 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h" 15 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h"
17 16
18 namespace ui { 17 namespace ui {
19 18
20 namespace { 19 namespace {
21 20
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 ui::CursorData input(kHotspot, {SkBitmap()}, kScale, kFrameDelay); 109 ui::CursorData input(kHotspot, {SkBitmap()}, kScale, kFrameDelay);
111 110
112 ui::CursorData output; 111 ui::CursorData output;
113 ASSERT_TRUE(EchoCursorData(input, &output)); 112 ASSERT_TRUE(EchoCursorData(input, &output));
114 113
115 ASSERT_EQ(1u, output.cursor_frames().size()); 114 ASSERT_EQ(1u, output.cursor_frames().size());
116 EXPECT_TRUE(output.cursor_frames().front().empty()); 115 EXPECT_TRUE(output.cursor_frames().front().empty());
117 } 116 }
118 117
119 } // namespace ui 118 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/cursor/cursor_struct_traits.cc ('k') | skia/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698