| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|