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

Unified Diff: ios/web/public/test/fakes/test_web_client.mm

Issue 2698413004: Implemented WebStateObserver::DidFinishNavigation(NavigationHandle*). (Closed)
Patch Set: Addressed review comments Created 3 years, 10 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/web/BUILD.gn ('k') | ios/web/public/web_state/navigation_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/fakes/test_web_client.mm
diff --git a/ios/web/public/test/fakes/test_web_client.mm b/ios/web/public/test/fakes/test_web_client.mm
index 8a62706ac5e6b4041bcdaa51f47268fbc93296f3..9baf4523db6db21e8ef65dbca3e4c46c7340ac00 100644
--- a/ios/web/public/test/fakes/test_web_client.mm
+++ b/ios/web/public/test/fakes/test_web_client.mm
@@ -18,12 +18,18 @@ TestWebClient::~TestWebClient() {}
void TestWebClient::AddAdditionalSchemes(
std::vector<url::SchemeWithType>* additional_standard_schemes) const {
- url::SchemeWithType scheme = {kTestWebUIScheme, url::SCHEME_WITHOUT_PORT};
- additional_standard_schemes->push_back(scheme);
+ url::SchemeWithType web_ui_scheme = {kTestWebUIScheme,
+ url::SCHEME_WITHOUT_PORT};
+ additional_standard_schemes->push_back(web_ui_scheme);
+
+ url::SchemeWithType native_scheme = {kTestNativeContentScheme,
+ url::SCHEME_WITHOUT_PORT};
+ additional_standard_schemes->push_back(native_scheme);
}
bool TestWebClient::IsAppSpecificURL(const GURL& url) const {
- return url.SchemeIs(kTestWebUIScheme);
+ return url.SchemeIs(kTestWebUIScheme) ||
+ url.SchemeIs(kTestNativeContentScheme);
}
base::RefCountedMemory* TestWebClient::GetDataResourceBytes(
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/public/web_state/navigation_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698