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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm

Issue 24120005: Cleanup and IWYU-ify CocoaProfileTest and related tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include order Created 7 years, 3 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 #include "base/mac/scoped_nsobject.h" 5 #include "base/mac/scoped_nsobject.h"
6 #include "base/strings/string16.h" 6 #include "base/strings/string16.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
10 #include "chrome/browser/bookmarks/bookmark_test_helpers.h" 10 #include "chrome/browser/bookmarks/bookmark_test_helpers.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view.h" 13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view.h"
14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" 14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
15 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" 15 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h"
16 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.h" 16 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.h"
17 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 17 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
18 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 18 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
19 #import "chrome/browser/ui/cocoa/url_drop_target.h" 19 #import "chrome/browser/ui/cocoa/url_drop_target.h"
20 #include "chrome/test/base/testing_profile.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 #include "testing/platform_test.h" 22 #include "testing/platform_test.h"
22 #import "third_party/mozilla/NSPasteboard+Utils.h" 23 #import "third_party/mozilla/NSPasteboard+Utils.h"
23 24
24 namespace { 25 namespace {
25 // Some values used for mocks and fakes. 26 // Some values used for mocks and fakes.
26 const CGFloat kFakeIndicatorPos = 7.0; 27 const CGFloat kFakeIndicatorPos = 7.0;
27 const NSPoint kPoint = {10, 10}; 28 const NSPoint kPoint = {10, 10};
28 }; 29 };
29 30
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 EXPECT_TRUE([info draggingEnteredCalled]); // Ensure controller pinged. 318 EXPECT_TRUE([info draggingEnteredCalled]); // Ensure controller pinged.
318 EXPECT_TRUE([view_ dropIndicatorShown]); 319 EXPECT_TRUE([view_ dropIndicatorShown]);
319 EXPECT_EQ([view_ dropIndicatorPosition], kFakeIndicatorPos); 320 EXPECT_EQ([view_ dropIndicatorPosition], kFakeIndicatorPos);
320 321
321 [info setDropIndicatorShown:NO]; 322 [info setDropIndicatorShown:NO];
322 EXPECT_EQ([view_ draggingEntered:(id)info.get()], NSDragOperationMove); 323 EXPECT_EQ([view_ draggingEntered:(id)info.get()], NSDragOperationMove);
323 EXPECT_FALSE([view_ dropIndicatorShown]); 324 EXPECT_FALSE([view_ dropIndicatorShown]);
324 } 325 }
325 326
326 } // namespace 327 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698