OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/clean/chrome/browser/ui/root/root_container_view_controller.h" | 5 #import "ios/clean/chrome/browser/ui/root/root_container_view_controller.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_delegate.h" | 8 #import "ios/clean/chrome/browser/ui/transitions/animators/zoom_transition_deleg
ate.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "testing/platform_test.h" | 10 #include "testing/platform_test.h" |
11 #import "third_party/ocmock/OCMock/OCMock.h" | 11 #import "third_party/ocmock/OCMock/OCMock.h" |
12 | 12 |
13 #if !defined(__has_feature) || !__has_feature(objc_arc) | 13 #if !defined(__has_feature) || !__has_feature(objc_arc) |
14 #error "This file requires ARC support." | 14 #error "This file requires ARC support." |
15 #endif | 15 #endif |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 rootViewController_.contentViewController = contentViewController_; | 79 rootViewController_.contentViewController = contentViewController_; |
80 [rootViewController_ loadViewIfNeeded]; | 80 [rootViewController_ loadViewIfNeeded]; |
81 UIViewController* differentViewController = [[UIViewController alloc] init]; | 81 UIViewController* differentViewController = [[UIViewController alloc] init]; |
82 rootViewController_.contentViewController = differentViewController; | 82 rootViewController_.contentViewController = differentViewController; |
83 EXPECT_EQ(1u, rootViewController_.childViewControllers.count); | 83 EXPECT_EQ(1u, rootViewController_.childViewControllers.count); |
84 EXPECT_EQ([rootViewController_.childViewControllers lastObject], | 84 EXPECT_EQ([rootViewController_.childViewControllers lastObject], |
85 differentViewController); | 85 differentViewController); |
86 } | 86 } |
87 | 87 |
88 } // namespace | 88 } // namespace |
OLD | NEW |