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

Unified Diff: ios/shared/chrome/browser/ui/coordinators/browser_coordinator_unittest.mm

Issue 2798833003: [ios clean] Updates all BrowserCoordinator to the new rule (Closed)
Patch Set: Fix unittests Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/shared/chrome/browser/ui/coordinators/browser_coordinator+internal.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/shared/chrome/browser/ui/coordinators/browser_coordinator_unittest.mm
diff --git a/ios/shared/chrome/browser/ui/coordinators/browser_coordinator_unittest.mm b/ios/shared/chrome/browser/ui/coordinators/browser_coordinator_unittest.mm
index 2d134580fc963dee0e2ec795c98dae3bc5c312ce..df005e6ebeff8faf3ffec84073390cbc59f37dc6 100644
--- a/ios/shared/chrome/browser/ui/coordinators/browser_coordinator_unittest.mm
+++ b/ios/shared/chrome/browser/ui/coordinators/browser_coordinator_unittest.mm
@@ -5,7 +5,6 @@
#import "ios/shared/chrome/browser/ui/coordinators/browser_coordinator.h"
#import "ios/shared/chrome/browser/ui/coordinators/browser_coordinator+internal.h"
-#import "ios/shared/chrome/browser/coordinator_context/coordinator_context.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gtest_mac.h"
@@ -95,13 +94,10 @@ TEST(BrowserCoordinatorTest, TestChildren) {
[parent addChildCoordinator:child];
EXPECT_TRUE([parent.children containsObject:child]);
EXPECT_EQ(parent, child.parentCoordinator);
- EXPECT_EQ(parent.viewController, child.context.baseViewController);
[parent removeChildCoordinator:child];
EXPECT_FALSE([parent.children containsObject:child]);
EXPECT_EQ(nil, child.parentCoordinator);
- // Unparenting shouldn't change a child's baseViewController.
- EXPECT_EQ(parent.viewController, child.context.baseViewController);
TestCoordinator* otherParent = [[TestCoordinator alloc] init];
TestCoordinator* otherChild = [[TestCoordinator alloc] init];
« no previous file with comments | « ios/shared/chrome/browser/ui/coordinators/browser_coordinator+internal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698