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

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

Issue 2930363003: Revert "[ios] Ensure proper shutdown of Chrome on iOS." (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « ios/chrome/browser/ui/main/browser_view_wrangler.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" 9 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
10 #import "ios/chrome/browser/tabs/tab_model.h" 10 #import "ios/chrome/browser/tabs/tab_model.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Test that once created the BVC and tab model aren't re-created. 44 // Test that once created the BVC and tab model aren't re-created.
45 EXPECT_EQ(bvc, [wrangler mainBVC]); 45 EXPECT_EQ(bvc, [wrangler mainBVC]);
46 EXPECT_EQ(tabModel, [wrangler mainTabModel]); 46 EXPECT_EQ(tabModel, [wrangler mainTabModel]);
47 47
48 // Test that the OTR objects are (a) OTR and (b) not the same as the non-OTR 48 // Test that the OTR objects are (a) OTR and (b) not the same as the non-OTR
49 // objects. 49 // objects.
50 EXPECT_NE(bvc, [wrangler otrBVC]); 50 EXPECT_NE(bvc, [wrangler otrBVC]);
51 EXPECT_NE(tabModel, [wrangler otrTabModel]); 51 EXPECT_NE(tabModel, [wrangler otrTabModel]);
52 EXPECT_TRUE([wrangler otrTabModel].browserState->IsOffTheRecord()); 52 EXPECT_TRUE([wrangler otrTabModel].browserState->IsOffTheRecord());
53
54 [wrangler shutdown];
55 } 53 }
56 54
57 } // namespace 55 } // namespace
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/main/browser_view_wrangler.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698