diff options
Diffstat (limited to 'chromium/google_apis/gcm/base')
-rw-r--r-- | chromium/google_apis/gcm/base/socket_stream_unittest.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chromium/google_apis/gcm/base/socket_stream_unittest.cc b/chromium/google_apis/gcm/base/socket_stream_unittest.cc index d8ea8fbfb57..079d1189886 100644 --- a/chromium/google_apis/gcm/base/socket_stream_unittest.cc +++ b/chromium/google_apis/gcm/base/socket_stream_unittest.cc @@ -20,6 +20,7 @@ #include "mojo/public/cpp/bindings/pending_remote.h" #include "mojo/public/cpp/bindings/remote.h" #include "net/base/ip_address.h" +#include "net/base/network_isolation_key.h" #include "net/log/net_log_source.h" #include "net/socket/socket_test_util.h" #include "net/traffic_annotation/network_traffic_annotation_test_helper.h" @@ -28,6 +29,7 @@ #include "services/network/network_service.h" #include "services/network/public/mojom/proxy_resolving_socket.mojom.h" #include "testing/gtest/include/gtest/gtest.h" +#include "url/origin.h" namespace gcm { namespace { @@ -231,8 +233,12 @@ void GCMSocketStreamTest::OpenConnection() { network::mojom::ProxyResolvingSocketOptionsPtr options = network::mojom::ProxyResolvingSocketOptions::New(); options->use_tls = true; + const url::Origin kOrigin = url::Origin::Create(kDestination); mojo_socket_factory_remote_->CreateProxyResolvingSocket( - kDestination, std::move(options), + kDestination, + net::NetworkIsolationKey(kOrigin /* top_frame_origin */, + kOrigin /* frame_origin */), + std::move(options), net::MutableNetworkTrafficAnnotationTag(TRAFFIC_ANNOTATION_FOR_TESTS), mojo_socket_remote_.BindNewPipeAndPassReceiver(), mojo::NullRemote() /* observer */, |