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

Side by Side Diff: content/browser/tab_contents/web_contents_view_mac_unittest.mm

Issue 10024066: TabContents -> WebContentsImpl, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #import "content/browser/tab_contents/web_contents_view_mac.h"
6
7 #include "base/memory/scoped_nsobject.h"
8 #import "ui/base/test/ui_cocoa_test_helper.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/platform_test.h"
11
12 namespace {
13
14 class WebContentsViewCocoaTest : public ui::CocoaTest {
15 };
16
17 TEST_F(WebContentsViewCocoaTest, NonWebDragSourceTest) {
18 scoped_nsobject<WebContentsViewCocoa>
19 view([[WebContentsViewCocoa alloc] init]);
20
21 // Tests that |draggingSourceOperationMaskForLocal:| returns the expected mask
22 // when dragging without a WebDragSource - i.e. when |startDragWithDropData:|
23 // hasn't yet been called. Dragging a file from the downloads manager, for
24 // example, requires this to work.
25 EXPECT_EQ(NSDragOperationCopy,
26 [view draggingSourceOperationMaskForLocal:YES]);
27 EXPECT_EQ(NSDragOperationCopy,
28 [view draggingSourceOperationMaskForLocal:NO]);
29 }
30
31 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698