| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
| 11 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h" | 11 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h" |
| 12 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" | 12 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" |
| 13 #include "chrome/grit/generated_resources.h" | |
| 14 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
| 15 #include "components/bookmarks/browser/bookmark_model.h" | 14 #include "components/bookmarks/browser/bookmark_model.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #import "testing/gtest_mac.h" | 16 #import "testing/gtest_mac.h" |
| 18 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
| 19 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 20 | 19 |
| 21 using base::ASCIIToUTF16; | 20 using base::ASCIIToUTF16; |
| 22 using bookmarks::BookmarkModel; | 21 using bookmarks::BookmarkModel; |
| 23 using bookmarks::BookmarkNode; | 22 using bookmarks::BookmarkNode; |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 EXPECT_TRUE([item image]); | 314 EXPECT_TRUE([item image]); |
| 316 | 315 |
| 317 model->SetTitle(node, ASCIIToUTF16("New Title")); | 316 model->SetTitle(node, ASCIIToUTF16("New Title")); |
| 318 | 317 |
| 319 item = [menu itemWithTitle:@"Test Item"]; | 318 item = [menu itemWithTitle:@"Test Item"]; |
| 320 EXPECT_FALSE(item); | 319 EXPECT_FALSE(item); |
| 321 item = [menu itemWithTitle:@"New Title"]; | 320 item = [menu itemWithTitle:@"New Title"]; |
| 322 EXPECT_TRUE(item); | 321 EXPECT_TRUE(item); |
| 323 } | 322 } |
| 324 | 323 |
| OLD | NEW |