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

Side by Side Diff: net/proxy/proxy_resolver_v8_unittest.cc

Issue 6362186595172352: net: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and revert nss_ocsp.cc changes Created 7 years, 5 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
« no previous file with comments | « net/proxy/proxy_resolver_v8_tracing_unittest.cc ('k') | net/proxy/proxy_resolver_winhttp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "googleurl/src/gurl.h"
12 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
13 #include "net/base/net_log_unittest.h" 12 #include "net/base/net_log_unittest.h"
14 #include "net/proxy/proxy_info.h" 13 #include "net/proxy/proxy_info.h"
15 #include "net/proxy/proxy_resolver_v8.h" 14 #include "net/proxy/proxy_resolver_v8.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "url/gurl.h"
17 17
18 namespace net { 18 namespace net {
19 namespace { 19 namespace {
20 20
21 // Javascript bindings for ProxyResolverV8, which returns mock values. 21 // Javascript bindings for ProxyResolverV8, which returns mock values.
22 // Each time one of the bindings is called into, we push the input into a 22 // Each time one of the bindings is called into, we push the input into a
23 // list, for later verification. 23 // list, for later verification.
24 class MockJSBindings : public ProxyResolverV8::JSBindings { 24 class MockJSBindings : public ProxyResolverV8::JSBindings {
25 public: 25 public:
26 MockJSBindings() : my_ip_address_count(0), my_ip_address_ex_count(0), 26 MockJSBindings() : my_ip_address_count(0), my_ip_address_ex_count(0),
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 GURL("http://kittens/"), &proxy_info, 622 GURL("http://kittens/"), &proxy_info,
623 CompletionCallback(), NULL, BoundNetLog()); 623 CompletionCallback(), NULL, BoundNetLog());
624 624
625 EXPECT_EQ(OK, result); 625 EXPECT_EQ(OK, result);
626 EXPECT_EQ(0u, bindings->errors.size()); 626 EXPECT_EQ(0u, bindings->errors.size());
627 EXPECT_EQ("kittens:88", proxy_info.proxy_server().ToURI()); 627 EXPECT_EQ("kittens:88", proxy_info.proxy_server().ToURI());
628 } 628 }
629 629
630 } // namespace 630 } // namespace
631 } // namespace net 631 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver_v8_tracing_unittest.cc ('k') | net/proxy/proxy_resolver_winhttp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698