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

Side by Side Diff: ios/clean/chrome/browser/ui/root/root_container_view_controller_unittest.mm

Issue 2955033002: [ios clean] Moves animator and presenters under transitions (Closed)
Patch Set: Created 3 years, 5 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 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
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
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/root/root_container_view_controller.h ('k') | ios/clean/chrome/browser/ui/tab/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698