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

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

Issue 112963005: Update uses of UTF conversions in courgette/, device/, extensions/, google_apis/, gpu/, ipc/, media… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 "net/proxy/proxy_service.h" 5 #include "net/proxy/proxy_service.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/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/base/net_log.h" 14 #include "net/base/net_log.h"
15 #include "net/base/net_log_unittest.h" 15 #include "net/base/net_log_unittest.h"
16 #include "net/base/test_completion_callback.h" 16 #include "net/base/test_completion_callback.h"
17 #include "net/proxy/dhcp_proxy_script_fetcher.h" 17 #include "net/proxy/dhcp_proxy_script_fetcher.h"
18 #include "net/proxy/mock_proxy_resolver.h" 18 #include "net/proxy/mock_proxy_resolver.h"
19 #include "net/proxy/mock_proxy_script_fetcher.h" 19 #include "net/proxy/mock_proxy_script_fetcher.h"
20 #include "net/proxy/proxy_config_service.h" 20 #include "net/proxy/proxy_config_service.h"
21 #include "net/proxy/proxy_resolver.h" 21 #include "net/proxy/proxy_resolver.h"
22 #include "net/proxy/proxy_script_fetcher.h" 22 #include "net/proxy/proxy_script_fetcher.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 using base::ASCIIToUTF16;
27
26 // TODO(eroman): Write a test which exercises 28 // TODO(eroman): Write a test which exercises
27 // ProxyService::SuspendAllPendingRequests(). 29 // ProxyService::SuspendAllPendingRequests().
28 namespace net { 30 namespace net {
29 namespace { 31 namespace {
30 32
31 // This polling policy will decide to poll every 1 ms. 33 // This polling policy will decide to poll every 1 ms.
32 class ImmediatePollPolicy : public ProxyService::PacPollPolicy { 34 class ImmediatePollPolicy : public ProxyService::PacPollPolicy {
33 public: 35 public:
34 ImmediatePollPolicy() {} 36 ImmediatePollPolicy() {}
35 37
(...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after
2782 ProxyInfo info3; 2784 ProxyInfo info3;
2783 TestCompletionCallback callback3; 2785 TestCompletionCallback callback3;
2784 rv = service.ResolveProxy( 2786 rv = service.ResolveProxy(
2785 GURL("http://request3"), &info3, callback3.callback(), NULL, 2787 GURL("http://request3"), &info3, callback3.callback(), NULL,
2786 BoundNetLog()); 2788 BoundNetLog());
2787 EXPECT_EQ(OK, rv); 2789 EXPECT_EQ(OK, rv);
2788 EXPECT_TRUE(info3.is_direct()); 2790 EXPECT_TRUE(info3.is_direct());
2789 } 2791 }
2790 2792
2791 } // namespace net 2793 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/socket/ssl_client_socket_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698