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

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

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 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
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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/sys_string_conversions.h" 14 #include "base/strings/sys_string_conversions.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 16 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
17 #include "chrome/browser/extensions/test_extension_system.h" 17 #include "chrome/browser/extensions/test_extension_system.h"
18 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" 18 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h"
19 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 19 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
20 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_window.h" 20 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_window.h"
21 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" 21 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h"
22 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h" 22 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h"
23 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" 23 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
24 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" 24 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h"
25 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 25 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
26 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" 26 #import "chrome/browser/ui/cocoa/view_resizer_pong.h"
27 #include "chrome/common/chrome_switches.h" 27 #include "chrome/common/chrome_switches.h"
28 #include "chrome/common/pref_names.h" 28 #include "chrome/common/pref_names.h"
29 #include "chrome/test/base/testing_pref_service_syncable.h"
30 #include "chrome/test/base/testing_profile.h" 29 #include "chrome/test/base/testing_profile.h"
31 #include "components/bookmarks/browser/bookmark_model.h" 30 #include "components/bookmarks/browser/bookmark_model.h"
32 #include "components/bookmarks/browser/bookmark_utils.h" 31 #include "components/bookmarks/browser/bookmark_utils.h"
33 #include "components/bookmarks/test/bookmark_test_helpers.h" 32 #include "components/bookmarks/test/bookmark_test_helpers.h"
33 #include "components/syncable_prefs/testing_pref_service_syncable.h"
34 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
35 #import "testing/gtest_mac.h" 35 #import "testing/gtest_mac.h"
36 #include "testing/platform_test.h" 36 #include "testing/platform_test.h"
37 #import "third_party/ocmock/OCMock/OCMock.h" 37 #import "third_party/ocmock/OCMock/OCMock.h"
38 #include "third_party/ocmock/gtest_support.h" 38 #include "third_party/ocmock/gtest_support.h"
39 #include "ui/base/cocoa/animation_utils.h" 39 #include "ui/base/cocoa/animation_utils.h"
40 #include "ui/base/theme_provider.h" 40 #include "ui/base/theme_provider.h"
41 #include "ui/events/test/cocoa_test_event_utils.h" 41 #include "ui/events/test/cocoa_test_event_utils.h"
42 #include "ui/gfx/image/image_skia.h" 42 #include "ui/gfx/image/image_skia.h"
43 43
(...skipping 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2148 "2f3b ] 4b "); 2148 "2f3b ] 4b ");
2149 actual = bookmarks::test::ModelStringFromNode(root); 2149 actual = bookmarks::test::ModelStringFromNode(root);
2150 EXPECT_EQ(expected, actual); 2150 EXPECT_EQ(expected, actual);
2151 2151
2152 // Verify that the other bookmark folder can't be deleted. 2152 // Verify that the other bookmark folder can't be deleted.
2153 BookmarkButton *otherButton = [bar_ otherBookmarksButton]; 2153 BookmarkButton *otherButton = [bar_ otherBookmarksButton];
2154 EXPECT_FALSE([bar_ canDragBookmarkButtonToTrash:otherButton]); 2154 EXPECT_FALSE([bar_ canDragBookmarkButtonToTrash:otherButton]);
2155 } 2155 }
2156 2156
2157 } // namespace 2157 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_tab_helper.cc ('k') | chrome/browser/ui/cocoa/cocoa_profile_test.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698