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

Unified Diff: services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc

Issue 1157783002: Update to newer network service implementation and mojoms from monet (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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: services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
diff --git a/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc b/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
index f7ae0bfa0d89ad48cfce20c0d8a88ef0289ed26c..be6b58ff515c3bf1f16481ad4dc497b92baad4cb 100644
--- a/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
+++ b/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
@@ -49,12 +49,11 @@ void CheckRedirectorResponse(uint32 expected_http_status,
// Check that the response contains a header redirecting to the expected
// location.
- std::string expected_redirect_header = "location: " + expected_redirect;
bool found_redirect_header = false;
EXPECT_FALSE(response->headers.is_null());
for (size_t i = 0; i < response->headers.size(); i++) {
- mojo::String header = response->headers[i];
- if (header == expected_redirect_header) {
+ const auto& header = response->headers[i];
+ if (header->name == "location" && header->value == expected_redirect) {
found_redirect_header = true;
break;
}

Powered by Google App Engine
This is Rietveld 408576698