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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc

Issue 1641513004: Update //base to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « mojo/dart/unittests/embedder_tester/validation_unittest.cc ('k') | services/dart/content_handler_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
index 9bf7aa2c2978f707555d63377afbdecca220d3a7..4f4a9a866b8351e44146de47c7c94ebc1e789642 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
@@ -7,7 +7,7 @@
#include "base/atomic_sequence_num.h"
#include "base/macros.h"
#include "base/run_loop.h"
-#include "base/strings/string_util.h"
+#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_impl.h"
@@ -206,8 +206,9 @@ class PassThroughIfHasTokenInterceptor : public BaseInterceptor {
HttpHeaderPtr header = request->headers[0].Pass();
EXPECT_EQ(kAuthenticationHeaderName, header->name);
- std::vector<std::string> auth_value_components;
- Tokenize(header->value, " ", &auth_value_components);
+ std::vector<std::string> auth_value_components =
+ base::SplitString(header->value.To<std::string>(), " ",
+ base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY);
EXPECT_EQ(2u, auth_value_components.size());
if (auth_value_components.size() == 2) {
EXPECT_EQ(kAuthenticationHeaderValuePrefix, auth_value_components[0]);
« no previous file with comments | « mojo/dart/unittests/embedder_tester/validation_unittest.cc ('k') | services/dart/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698