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

Unified Diff: ios/chrome/browser/ui/browser_view_controller_unittest.mm

Issue 2655463014: Pass the correct webState to the nativeContent. (Closed)
Patch Set: s/ithW// Created 3 years, 11 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
Index: ios/chrome/browser/ui/browser_view_controller_unittest.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller_unittest.mm b/ios/chrome/browser/ui/browser_view_controller_unittest.mm
index d31d8ee75a3f4bd1ea02fdc9ffc5338ac783c37e..9202e59402c638bc7a6703ac19c81018b57b727d 100644
--- a/ios/chrome/browser/ui/browser_view_controller_unittest.mm
+++ b/ios/chrome/browser/ui/browser_view_controller_unittest.mm
@@ -327,11 +327,13 @@ TEST_F(BrowserViewControllerTest, TestTabDeselected) {
TEST_F(BrowserViewControllerTest, TestNativeContentController) {
id<CRWNativeContent> controller =
- [bvc_ controllerForURL:GURL(kChromeUINewTabURL)];
+ [bvc_ controllerForURL:GURL(kChromeUINewTabURL)
+ webState:webStateImpl_.get()];
EXPECT_TRUE(controller != nil);
EXPECT_TRUE([controller isMemberOfClass:[NewTabPageController class]]);
- controller = [bvc_ controllerForURL:GURL(kChromeUISettingsURL)];
+ controller = [bvc_ controllerForURL:GURL(kChromeUISettingsURL)
+ webState:webStateImpl_.get()];
EXPECT_TRUE(controller != nil);
EXPECT_TRUE([controller isMemberOfClass:[PageNotAvailableController class]]);
}

Powered by Google App Engine
This is Rietveld 408576698