| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/bookmarks/bookmark_model.h" |
| 5 #import "chrome/browser/cocoa/bookmark_bar_controller.h" | 6 #import "chrome/browser/cocoa/bookmark_bar_controller.h" |
| 6 #import "chrome/browser/cocoa/bookmark_bar_folder_controller.h" | 7 #import "chrome/browser/cocoa/bookmark_bar_folder_controller.h" |
| 7 #import "chrome/browser/cocoa/bookmark_folder_target.h" | 8 #import "chrome/browser/cocoa/bookmark_folder_target.h" |
| 8 #include "chrome/browser/cocoa/bookmark_button.h" | 9 #include "chrome/browser/cocoa/bookmark_button.h" |
| 9 #include "chrome/browser/cocoa/browser_test_helper.h" | 10 #include "chrome/browser/cocoa/browser_test_helper.h" |
| 10 #include "chrome/browser/cocoa/cocoa_test_helper.h" | 11 #include "chrome/browser/cocoa/cocoa_test_helper.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" |
| 13 #import "third_party/ocmock/OCMock/OCMock.h" | 14 #import "third_party/ocmock/OCMock/OCMock.h" |
| 14 | 15 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 116 |
| 116 scoped_nsobject<BookmarkFolderTarget> target( | 117 scoped_nsobject<BookmarkFolderTarget> target( |
| 117 [[BookmarkFolderTarget alloc] initWithController:controller]); | 118 [[BookmarkFolderTarget alloc] initWithController:controller]); |
| 118 | 119 |
| 119 [target openBookmarkFolderFromButton:sender]; | 120 [target openBookmarkFolderFromButton:sender]; |
| 120 [controller verify]; | 121 [controller verify]; |
| 121 | 122 |
| 122 // Break retain cycles. | 123 // Break retain cycles. |
| 123 [controller clearRecordersAndExpectations]; | 124 [controller clearRecordersAndExpectations]; |
| 124 } | 125 } |
| OLD | NEW |