| Index: net/base/default_trusted_spdy_proxy_provider_unittest.cc
|
| diff --git a/net/base/default_trusted_spdy_proxy_provider_unittest.cc b/net/base/default_trusted_spdy_proxy_provider_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..53d07057245bc527c992f505e43d43172a67d5ff
|
| --- /dev/null
|
| +++ b/net/base/default_trusted_spdy_proxy_provider_unittest.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "net/base/default_trusted_spdy_proxy_provider.h"
|
| +
|
| +#include <string>
|
| +
|
| +#include "net/proxy/proxy_server.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace net {
|
| +
|
| +namespace {
|
| +
|
| +// Tests that DefaultTrustedSpdyProxyProvider returns the proxy that is set
|
| +// during the time of its construction.
|
| +TEST(DefaultTrustedSpdyProxyProviderTest, ReturnsCorrectProxy) {
|
| + const std::string proxy = "example.com:80";
|
| + DefaultTrustedSpdyProxyProvider trusted_spdy_proxy_provider(
|
| + net::ProxyServer::FromURI(proxy, net::ProxyServer::SCHEME_HTTP));
|
| +
|
| + ProxyServer get_proxy;
|
| + trusted_spdy_proxy_provider.GetTrustedSpdyProxy(&get_proxy);
|
| + EXPECT_EQ(proxy, get_proxy.ToURI());
|
| +}
|
| +
|
| +} // namespace
|
| +
|
| +} // namespace net
|
|
|