| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <AppKit/AppKit.h> | 5 #import <AppKit/AppKit.h> |
| 6 #import "base/scoped_nsobject.h" | 6 #import "base/scoped_nsobject.h" |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "chrome/app/chrome_dll_resource.h" | 8 #include "chrome/app/chrome_dll_resource.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 9 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
| 10 #include "chrome/browser/cocoa/bookmark_menu_bridge.h" | 11 #include "chrome/browser/cocoa/bookmark_menu_bridge.h" |
| 11 #include "chrome/browser/cocoa/browser_test_helper.h" | 12 #include "chrome/browser/cocoa/browser_test_helper.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #import "testing/gtest_mac.h" | 14 #import "testing/gtest_mac.h" |
| 14 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
| 15 | 16 |
| 16 class TestBookmarkMenuBridge : public BookmarkMenuBridge { | 17 class TestBookmarkMenuBridge : public BookmarkMenuBridge { |
| 17 public: | 18 public: |
| 18 TestBookmarkMenuBridge(Profile* profile) | 19 TestBookmarkMenuBridge(Profile* profile) |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 EXPECT_TRUE([item image]); | 309 EXPECT_TRUE([item image]); |
| 309 | 310 |
| 310 model->SetTitle(node, L"New Title"); | 311 model->SetTitle(node, L"New Title"); |
| 311 | 312 |
| 312 item = [menu itemWithTitle:@"Test Item"]; | 313 item = [menu itemWithTitle:@"Test Item"]; |
| 313 EXPECT_FALSE(item); | 314 EXPECT_FALSE(item); |
| 314 item = [menu itemWithTitle:@"New Title"]; | 315 item = [menu itemWithTitle:@"New Title"]; |
| 315 EXPECT_TRUE(item); | 316 EXPECT_TRUE(item); |
| 316 } | 317 } |
| 317 | 318 |
| OLD | NEW |