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

Side by Side Diff: webkit/common/cursors/webcursor_unittest.cc

Issue 68683009: Rewrite include paths for Blink public/ headers that have moved (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | « webkit/common/cursors/webcursor_mac.mm ('k') | webkit/common/cursors/webcursor_win.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/pickle.h" 5 #include "base/pickle.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "third_party/WebKit/public/web/WebCursorInfo.h" 7 #include "third_party/WebKit/public/platform/WebCursorInfo.h"
8 #include "webkit/common/cursors/webcursor.h" 8 #include "webkit/common/cursors/webcursor.h"
9 9
10 using blink::WebCursorInfo; 10 using blink::WebCursorInfo;
11 11
12 TEST(WebCursorTest, OKCursorSerialization) { 12 TEST(WebCursorTest, OKCursorSerialization) {
13 WebCursor custom_cursor; 13 WebCursor custom_cursor;
14 // This is a valid custom cursor. 14 // This is a valid custom cursor.
15 Pickle ok_custom_pickle; 15 Pickle ok_custom_pickle;
16 // Type and hotspots. 16 // Type and hotspots.
17 ok_custom_pickle.WriteInt(WebCursorInfo::TypeCustom); 17 ok_custom_pickle.WriteInt(WebCursorInfo::TypeCustom);
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 PickleIterator iter(ok_custom_pickle); 235 PickleIterator iter(ok_custom_pickle);
236 EXPECT_TRUE(custom_cursor.Deserialize(&iter)); 236 EXPECT_TRUE(custom_cursor.Deserialize(&iter));
237 237
238 #if defined(TOOLKIT_GTK) 238 #if defined(TOOLKIT_GTK)
239 // On GTK+ using platforms, we should get a real native GdkCursor object back 239 // On GTK+ using platforms, we should get a real native GdkCursor object back
240 // (and the memory used should automatically be freed by the WebCursor object 240 // (and the memory used should automatically be freed by the WebCursor object
241 // for valgrind tests). 241 // for valgrind tests).
242 EXPECT_TRUE(custom_cursor.GetCustomCursor()); 242 EXPECT_TRUE(custom_cursor.GetCustomCursor());
243 #endif 243 #endif
244 } 244 }
OLDNEW
« no previous file with comments | « webkit/common/cursors/webcursor_mac.mm ('k') | webkit/common/cursors/webcursor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698