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

Side by Side Diff: chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy.h" 5 #include "chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "net/http/http_request_info.h" 14 #include "net/http/http_request_info.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace { 17 namespace {
18 18
19 const char kValidOrigin[] = "https://www.proxy.com/"; 19 const char kValidOrigin[] = "https://www.proxy.com/";
20 const char kValidChallenge[] = "SpdyProxy realm=\"SpdyProxy\", " 20 const char kValidChallenge[] = "SpdyProxy realm=\"SpdyProxy\", "
21 "ps=\"1-2-3-4\""; 21 "ps=\"1-2-3-4\"";
22 22
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 EXPECT_EQ(tests[i].expected_realm, spdyproxy->realm()); 152 EXPECT_EQ(tests[i].expected_realm, spdyproxy->realm());
153 HttpAuthHandlerSpdyProxy* as_spdyproxy = 153 HttpAuthHandlerSpdyProxy* as_spdyproxy =
154 static_cast<HttpAuthHandlerSpdyProxy*>(spdyproxy.get()); 154 static_cast<HttpAuthHandlerSpdyProxy*>(spdyproxy.get());
155 EXPECT_EQ(tests[i].expected_ps, 155 EXPECT_EQ(tests[i].expected_ps,
156 as_spdyproxy->ps_token_); 156 as_spdyproxy->ps_token_);
157 } 157 }
158 } 158 }
159 } 159 }
160 160
161 } // namespace spdyproxy 161 } // namespace spdyproxy
OLDNEW
« no previous file with comments | « chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy.cc ('k') | chrome/browser/net/url_fixer_upper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698