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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller_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 #import "base/mac/scoped_nsobject.h" 5 #import "base/mac/scoped_nsobject.h"
6 #include "base/strings/string16.h" 6 #include "base/strings/string16.h"
7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.h" 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.h"
10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 10 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "components/bookmarks/browser/bookmark_model.h" 12 #include "components/bookmarks/browser/bookmark_model.h"
13 #include "components/bookmarks/browser/bookmark_utils.h" 13 #include "components/bookmarks/browser/bookmark_utils.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using bookmarks::BookmarkModel; 16 using bookmarks::BookmarkModel;
17 using bookmarks::BookmarkNode; 17 using bookmarks::BookmarkNode;
18 18
19 @interface FakeBookmarkMenuController : BookmarkMenuCocoaController { 19 @interface FakeBookmarkMenuController : BookmarkMenuCocoaController {
20 @public 20 @public
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 EXPECT_NE(c->opened_new_foreground_tab, NO); 101 EXPECT_NE(c->opened_new_foreground_tab, NO);
102 102
103 EXPECT_EQ(c->opened_new_window, NO); 103 EXPECT_EQ(c->opened_new_window, NO);
104 [c openAllBookmarksNewWindow:item]; 104 [c openAllBookmarksNewWindow:item];
105 EXPECT_NE(c->opened_new_window, NO); 105 EXPECT_NE(c->opened_new_window, NO);
106 106
107 EXPECT_EQ(c->opened_off_the_record, NO); 107 EXPECT_EQ(c->opened_off_the_record, NO);
108 [c openAllBookmarksIncognitoWindow:item]; 108 [c openAllBookmarksIncognitoWindow:item];
109 EXPECT_NE(c->opened_off_the_record, NO); 109 EXPECT_NE(c->opened_off_the_record, NO);
110 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698