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

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

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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
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 <cmath> 5 #include <cmath>
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h"
13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" 13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h"
14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" 14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h"
15 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 15 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h"
16 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 16 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
17 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" 17 #import "chrome/browser/ui/cocoa/view_resizer_pong.h"
18 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
19 #include "components/bookmarks/browser/bookmark_model.h" 19 #include "components/bookmarks/browser/bookmark_model.h"
20 #include "components/bookmarks/test/bookmark_test_helpers.h" 20 #include "components/bookmarks/test/bookmark_test_helpers.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 #include "ui/base/cocoa/animation_utils.h" 24 #include "ui/base/cocoa/animation_utils.h"
25 #include "ui/base/cocoa/cocoa_base_utils.h" 25 #include "ui/base/cocoa/cocoa_base_utils.h"
26 #include "ui/base/material_design/material_design_controller.h" 26 #include "ui/base/material_design/material_design_controller.h"
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 DeleteBookmark([folder parentButton], profile()); 1699 DeleteBookmark([folder parentButton], profile());
1700 EXPECT_FALSE([folder folderController]); 1700 EXPECT_FALSE([folder folderController]);
1701 } 1701 }
1702 1702
1703 // TODO(jrg): draggingEntered: and draggingExited: trigger timers so 1703 // TODO(jrg): draggingEntered: and draggingExited: trigger timers so
1704 // they are hard to test. Factor out "fire timers" into routines 1704 // they are hard to test. Factor out "fire timers" into routines
1705 // which can be overridden to fire immediately to make behavior 1705 // which can be overridden to fire immediately to make behavior
1706 // confirmable. 1706 // confirmable.
1707 // There is a similar problem with mouseEnteredButton: and 1707 // There is a similar problem with mouseEnteredButton: and
1708 // mouseExitedButton:. 1708 // mouseExitedButton:.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698