| 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 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/mac/scoped_nsobject.h" | 6 #include "base/mac/scoped_nsobject.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" |
| 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
| 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" | 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" |
| 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" | 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" |
| 13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" | 13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" |
| 14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
| 15 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 15 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 16 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" | 16 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" |
| 17 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
| 18 #include "components/bookmarks/core/browser/bookmark_model.h" | 18 #include "components/bookmarks/browser/bookmark_model.h" |
| 19 #include "components/bookmarks/core/test/bookmark_test_helpers.h" | 19 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #import "testing/gtest_mac.h" | 21 #import "testing/gtest_mac.h" |
| 22 #include "testing/platform_test.h" | 22 #include "testing/platform_test.h" |
| 23 #include "ui/base/cocoa/animation_utils.h" | 23 #include "ui/base/cocoa/animation_utils.h" |
| 24 | 24 |
| 25 #include <cmath> | 25 #include <cmath> |
| 26 | 26 |
| 27 using base::ASCIIToUTF16; | 27 using base::ASCIIToUTF16; |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| (...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1603 DeleteBookmark([folder parentButton], profile()); | 1603 DeleteBookmark([folder parentButton], profile()); |
| 1604 EXPECT_FALSE([folder folderController]); | 1604 EXPECT_FALSE([folder folderController]); |
| 1605 } | 1605 } |
| 1606 | 1606 |
| 1607 // TODO(jrg): draggingEntered: and draggingExited: trigger timers so | 1607 // TODO(jrg): draggingEntered: and draggingExited: trigger timers so |
| 1608 // they are hard to test. Factor out "fire timers" into routines | 1608 // they are hard to test. Factor out "fire timers" into routines |
| 1609 // which can be overridden to fire immediately to make behavior | 1609 // which can be overridden to fire immediately to make behavior |
| 1610 // confirmable. | 1610 // confirmable. |
| 1611 // There is a similar problem with mouseEnteredButton: and | 1611 // There is a similar problem with mouseEnteredButton: and |
| 1612 // mouseExitedButton:. | 1612 // mouseExitedButton:. |
| OLD | NEW |