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

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

Issue 7474025: Move more files from chrome/test to chrome/test/base, part #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/scoped_nsobject.h" 8 #include "base/memory/scoped_nsobject.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
11 #import "chrome/browser/ui/cocoa/animation_utils.h" 11 #import "chrome/browser/ui/cocoa/animation_utils.h"
12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h"
13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" 14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h"
15 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" 15 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h"
16 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" 16 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h"
17 #include "chrome/browser/ui/cocoa/browser_test_helper.h" 17 #include "chrome/browser/ui/cocoa/browser_test_helper.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/view_resizer_pong.h" 19 #import "chrome/browser/ui/cocoa/view_resizer_pong.h"
20 #include "chrome/test/model_test_utils.h" 20 #include "chrome/test/base/model_test_utils.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #import "testing/gtest_mac.h" 22 #import "testing/gtest_mac.h"
23 #include "testing/platform_test.h" 23 #include "testing/platform_test.h"
24 24
25 // Add a redirect to make testing easier. 25 // Add a redirect to make testing easier.
26 @interface BookmarkBarFolderController(MakeTestingEasier) 26 @interface BookmarkBarFolderController(MakeTestingEasier)
27 - (IBAction)openBookmarkFolderFromButton:(id)sender; 27 - (IBAction)openBookmarkFolderFromButton:(id)sender;
28 - (void)validateMenuSpacing; 28 - (void)validateMenuSpacing;
29 @end 29 @end
30 30
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 [folder deleteBookmark:folder]; 1552 [folder deleteBookmark:folder];
1553 EXPECT_FALSE([folder folderController]); 1553 EXPECT_FALSE([folder folderController]);
1554 } 1554 }
1555 1555
1556 // TODO(jrg): draggingEntered: and draggingExited: trigger timers so 1556 // TODO(jrg): draggingEntered: and draggingExited: trigger timers so
1557 // they are hard to test. Factor out "fire timers" into routines 1557 // they are hard to test. Factor out "fire timers" into routines
1558 // which can be overridden to fire immediately to make behavior 1558 // which can be overridden to fire immediately to make behavior
1559 // confirmable. 1559 // confirmable.
1560 // There is a similar problem with mouseEnteredButton: and 1560 // There is a similar problem with mouseEnteredButton: and
1561 // mouseExitedButton:. 1561 // mouseExitedButton:.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698