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

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

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_factory.h" 5 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
6 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h" 6 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h"
7 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 7 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
8 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 8 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h"
9 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #import "testing/gtest_mac.h" 11 #import "testing/gtest_mac.h"
12 #include "testing/platform_test.h" 12 #include "testing/platform_test.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 using bookmarks::BookmarkModel; 15 using bookmarks::BookmarkModel;
16 using bookmarks::BookmarkNode; 16 using bookmarks::BookmarkNode;
17 17
18 // TODO(jrg): use OCMock. 18 // TODO(jrg): use OCMock.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bridge->BookmarkNodeRemoved(NULL, NULL, 0, NULL, std::set<GURL>()); 126 bridge->BookmarkNodeRemoved(NULL, NULL, 0, NULL, std::set<GURL>());
127 127
128 // 8 calls above plus an initial Loaded() in init routine makes 9 128 // 8 calls above plus an initial Loaded() in init routine makes 9
129 EXPECT_TRUE([controller.get()->callbacks_ count] == 9); 129 EXPECT_TRUE([controller.get()->callbacks_ count] == 9);
130 130
131 for (int x = 1; x < 9; x++) { 131 for (int x = 1; x < 9; x++) {
132 NSNumber* num = [NSNumber numberWithInt:x-1]; 132 NSNumber* num = [NSNumber numberWithInt:x-1];
133 EXPECT_NSEQ(num, [controller.get()->callbacks_ objectAtIndex:x]); 133 EXPECT_NSEQ(num, [controller.get()->callbacks_ objectAtIndex:x]);
134 } 134 }
135 } 135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698