| OLD | NEW | 
|---|
| 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 #include <stddef.h> | 6 #include <stddef.h> | 
| 7 #include <stdint.h> | 7 #include <stdint.h> | 
| 8 | 8 | 
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" | 
| 10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" | 
| 11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" | 
| 12 #include "base/macros.h" | 12 #include "base/macros.h" | 
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" | 
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" | 
| 15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" | 
| 16 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" | 
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" | 
| 18 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 18 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 
| 19 #include "chrome/browser/extensions/test_extension_system.h" | 19 #include "chrome/browser/extensions/test_extension_system.h" | 
| 20 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" | 20 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" | 
| 21 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 21 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 
| 22 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_window.h" | 22 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_window.h" | 
| 23 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" | 23 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" | 
| 24 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h" | 24 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h" | 
| 25 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" | 25 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" | 
| 26 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | 26 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | 
| 27 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 27 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" | 
| 28 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" | 28 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" | 
| 29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" | 
| 30 #include "chrome/test/base/testing_profile.h" | 30 #include "chrome/test/base/testing_profile.h" | 
| 31 #include "components/bookmarks/browser/bookmark_model.h" | 31 #include "components/bookmarks/browser/bookmark_model.h" | 
| 32 #include "components/bookmarks/browser/bookmark_utils.h" | 32 #include "components/bookmarks/browser/bookmark_utils.h" | 
| 33 #include "components/bookmarks/common/bookmark_pref_names.h" | 33 #include "components/bookmarks/common/bookmark_pref_names.h" | 
| 34 #include "components/bookmarks/test/bookmark_test_helpers.h" | 34 #include "components/bookmarks/test/bookmark_test_helpers.h" | 
| 35 #include "components/sync_preferences/testing_pref_service_syncable.h" | 35 #include "components/sync_preferences/testing_pref_service_syncable.h" | 
| 36 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" | 
| 37 #import "testing/gtest_mac.h" | 37 #import "testing/gtest_mac.h" | 
| (...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2180                              "2f3b ] 4b "); | 2180                              "2f3b ] 4b "); | 
| 2181   actual = bookmarks::test::ModelStringFromNode(root); | 2181   actual = bookmarks::test::ModelStringFromNode(root); | 
| 2182   EXPECT_EQ(expected, actual); | 2182   EXPECT_EQ(expected, actual); | 
| 2183 | 2183 | 
| 2184   // Verify that the other bookmark folder can't be deleted. | 2184   // Verify that the other bookmark folder can't be deleted. | 
| 2185   BookmarkButton *otherButton = [bar_ otherBookmarksButton]; | 2185   BookmarkButton *otherButton = [bar_ otherBookmarksButton]; | 
| 2186   EXPECT_FALSE([bar_ canDragBookmarkButtonToTrash:otherButton]); | 2186   EXPECT_FALSE([bar_ canDragBookmarkButtonToTrash:otherButton]); | 
| 2187 } | 2187 } | 
| 2188 | 2188 | 
| 2189 }  // namespace | 2189 }  // namespace | 
| OLD | NEW | 
|---|