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

Side by Side Diff: net/base/default_trusted_spdy_proxy_provider_unittest.cc

Issue 1547273003: Set trusted SPDY proxy dynamically on per-profile basis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/base/default_trusted_spdy_proxy_provider.h"
6
7 #include <string>
8
9 #include "net/proxy/proxy_server.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11
12 namespace net {
13
14 namespace {
15
16 TEST(DefaultTrustedSpdyProxyProviderTest, Basics) {
17 const std::string proxy = "example.com:80";
18 DefaultTrustedSpdyProxyProvider trusted_spdy_proxy_provider(
19 net::ProxyServer::FromURI(proxy, net::ProxyServer::SCHEME_HTTP));
20
21 ProxyServer get_proxy;
22 trusted_spdy_proxy_provider.GetTrustedSpdyProxy(&get_proxy);
23 EXPECT_EQ(proxy, get_proxy.ToURI());
24 }
25
26 } // namespace
27
28 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698