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

Side by Side Diff: ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm

Issue 2603973002: Import Objective C Frameworks (Closed)
Patch Set: only ios Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ios/chrome/browser/ui/main/browser_view_wrangler.h" 5 #import "ios/chrome/browser/ui/main/browser_view_wrangler.h"
6 6
7 #include <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "components/bookmarks/test/bookmark_test_helpers.h" 10 #include "components/bookmarks/test/bookmark_test_helpers.h"
11 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" 11 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
12 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" 12 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
13 #import "ios/chrome/browser/tabs/tab_model.h" 13 #import "ios/chrome/browser/tabs/tab_model.h"
14 #import "ios/chrome/browser/ui/browser_view_controller.h" 14 #import "ios/chrome/browser/ui/browser_view_controller.h"
15 #include "ios/web/public/test/test_web_thread_bundle.h" 15 #include "ios/web/public/test/test_web_thread_bundle.h"
16 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
17 17
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 EXPECT_EQ(tabModel, [wrangler mainTabModel]); 52 EXPECT_EQ(tabModel, [wrangler mainTabModel]);
53 53
54 // Test that the OTR objects are (a) OTR and (b) not the same as the non-OTR 54 // Test that the OTR objects are (a) OTR and (b) not the same as the non-OTR
55 // objects. 55 // objects.
56 EXPECT_NE(bvc, [wrangler otrBVC]); 56 EXPECT_NE(bvc, [wrangler otrBVC]);
57 EXPECT_NE(tabModel, [wrangler otrTabModel]); 57 EXPECT_NE(tabModel, [wrangler otrTabModel]);
58 EXPECT_TRUE([wrangler otrTabModel].browserState->IsOffTheRecord()); 58 EXPECT_TRUE([wrangler otrTabModel].browserState->IsOffTheRecord());
59 } 59 }
60 60
61 } // namespace 61 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698