| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "app/l10n_util_mac.h" | 7 #include "app/l10n_util_mac.h" |
| 8 #include "base/scoped_nsobject.h" | 8 #include "base/scoped_nsobject.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 10 #import "chrome/browser/cocoa/bookmark_editor_controller.h" | 11 #import "chrome/browser/cocoa/bookmark_editor_controller.h" |
| 11 #include "chrome/browser/cocoa/browser_test_helper.h" | 12 #include "chrome/browser/cocoa/browser_test_helper.h" |
| 12 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 13 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
| 13 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #import "testing/gtest_mac.h" | 16 #import "testing/gtest_mac.h" |
| 16 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
| 17 | 18 |
| 18 class BookmarkEditorBaseControllerTest : public CocoaTest { | 19 class BookmarkEditorBaseControllerTest : public CocoaTest { |
| 19 public: | 20 public: |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 reinterpret_cast<const BookmarkNode*>(&children); | 224 reinterpret_cast<const BookmarkNode*>(&children); |
| 224 BookmarkFolderInfo* info = | 225 BookmarkFolderInfo* info = |
| 225 [BookmarkFolderInfo bookmarkFolderInfoWithFolderName:@"name" | 226 [BookmarkFolderInfo bookmarkFolderInfoWithFolderName:@"name" |
| 226 folderNode:fakeNode | 227 folderNode:fakeNode |
| 227 children:children]; | 228 children:children]; |
| 228 EXPECT_TRUE(info); | 229 EXPECT_TRUE(info); |
| 229 EXPECT_EQ([info folderName], @"name"); | 230 EXPECT_EQ([info folderName], @"name"); |
| 230 EXPECT_EQ([info children], children); | 231 EXPECT_EQ([info children], children); |
| 231 EXPECT_EQ([info folderNode], fakeNode); | 232 EXPECT_EQ([info folderNode], fakeNode); |
| 232 } | 233 } |
| OLD | NEW |