Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(960)

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_tree_browser_cell_unittest.mm

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "base/mac/scoped_nsobject.h" 7 #import "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_tree_browser_cell.h" 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_tree_browser_cell.h"
9 #include "components/bookmarks/core/browser/bookmark_model.h" 9 #include "components/bookmarks/browser/bookmark_model.h"
10 #include "testing/platform_test.h" 10 #include "testing/platform_test.h"
11 11
12 class BookmarkTreeBrowserCellTest : public PlatformTest { 12 class BookmarkTreeBrowserCellTest : public PlatformTest {
13 public: 13 public:
14 BookmarkTreeBrowserCellTest() { 14 BookmarkTreeBrowserCellTest() {
15 // Set up our mocks. 15 // Set up our mocks.
16 GURL gurl; 16 GURL gurl;
17 bookmarkNodeMock_.reset(new BookmarkNode(gurl)); 17 bookmarkNodeMock_.reset(new BookmarkNode(gurl));
18 matrixMock_.reset([[NSMatrix alloc] init]); 18 matrixMock_.reset([[NSMatrix alloc] init]);
19 targetMock_.reset([[NSObject alloc] init]); 19 targetMock_.reset([[NSObject alloc] init]);
(...skipping 14 matching lines...) Expand all
34 34
35 NSMatrix* testMatrix = [cell matrix]; 35 NSMatrix* testMatrix = [cell matrix];
36 EXPECT_EQ(testMatrix, matrixMock_.get()); 36 EXPECT_EQ(testMatrix, matrixMock_.get());
37 id testTarget = [cell target]; 37 id testTarget = [cell target];
38 EXPECT_EQ(testTarget, targetMock_.get()); 38 EXPECT_EQ(testTarget, targetMock_.get());
39 SEL testAction = [cell action]; 39 SEL testAction = [cell action];
40 EXPECT_EQ(testAction, @selector(mockAction:)); 40 EXPECT_EQ(testAction, @selector(mockAction:));
41 const BookmarkNode* testBookmarkNode = [cell bookmarkNode]; 41 const BookmarkNode* testBookmarkNode = [cell bookmarkNode];
42 EXPECT_EQ(testBookmarkNode, bookmarkNodeMock_.get()); 42 EXPECT_EQ(testBookmarkNode, bookmarkNodeMock_.get());
43 } 43 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_tree_browser_cell.mm ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698