| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 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 | 
|  | 3 // found in the LICENSE file. | 
|  | 4 | 
|  | 5 #import "ios/chrome/app/safe_mode/safe_mode_coordinator.h" | 
|  | 6 | 
|  | 7 #include <UIKit/UIKit.h> | 
|  | 8 | 
|  | 9 #include "base/mac/scoped_nsobject.h" | 
|  | 10 #include "testing/gtest_mac.h" | 
|  | 11 | 
|  | 12 TEST(SafeModeCoordinatorTest, RootVC) { | 
|  | 13   // Expect that starting a safe mode coordinator will populate the root view | 
|  | 14   // controller. | 
|  | 15   base::scoped_nsobject<UIWindow> window( | 
|  | 16       [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]); | 
|  | 17   EXPECT_TRUE([window rootViewController] == nil); | 
|  | 18   base::scoped_nsobject<SafeModeCoordinator> safe_mode_coordinator( | 
|  | 19       [[SafeModeCoordinator alloc] initWithWindow:window]); | 
|  | 20   [safe_mode_coordinator start]; | 
|  | 21   EXPECT_FALSE([window rootViewController] == nil); | 
|  | 22 } | 
| OLD | NEW | 
|---|