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

Side by Side Diff: content/browser/web_contents/web_drag_source_mac_unittest.mm

Issue 10483003: Move the rest of the content\test headers that are used by embedders to content\public\test. This w… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 #import "content/browser/web_contents/web_drag_source_mac.h" 5 #import "content/browser/web_contents/web_drag_source_mac.h"
6 6
7 #include "content/browser/web_contents/web_contents_impl.h" 7 #include "content/browser/web_contents/web_contents_impl.h"
8 #include "content/test/test_renderer_host.h" 8 #include "content/public/test/test_renderer_host.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "webkit/glue/webdropdata.h" 11 #include "webkit/glue/webdropdata.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 typedef RenderViewHostTestHarness WebDragSourceMacTest; 15 typedef RenderViewHostTestHarness WebDragSourceMacTest;
16 16
17 TEST_F(WebDragSourceMacTest, DragInvalidlyEscapedBookmarklet) { 17 TEST_F(WebDragSourceMacTest, DragInvalidlyEscapedBookmarklet) {
18 scoped_ptr<WebContents> contents(CreateTestWebContents()); 18 scoped_ptr<WebContents> contents(CreateTestWebContents());
(...skipping 14 matching lines...) Expand all
33 pasteboard:[NSPasteboard pasteboardWithUniqueName] 33 pasteboard:[NSPasteboard pasteboardWithUniqueName]
34 dragOperationMask:NSDragOperationCopy]); 34 dragOperationMask:NSDragOperationCopy]);
35 35
36 // Test that this call doesn't throw any exceptions: http://crbug.com/128371 36 // Test that this call doesn't throw any exceptions: http://crbug.com/128371
37 scoped_nsobject<NSPasteboard> pasteboard( 37 scoped_nsobject<NSPasteboard> pasteboard(
38 [NSPasteboard pasteboardWithUniqueName]); 38 [NSPasteboard pasteboardWithUniqueName]);
39 [source lazyWriteToPasteboard:pasteboard forType:NSURLPboardType]; 39 [source lazyWriteToPasteboard:pasteboard forType:NSURLPboardType];
40 } 40 }
41 41
42 } // namespace content 42 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698