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

Unified Diff: components/cast_channel/cast_socket_unittest.cc

Issue 2942743002: [cast_channel] Clean up CastSocketImpl ctor parameters (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/cast_channel/cast_socket_unittest.cc
diff --git a/components/cast_channel/cast_socket_unittest.cc b/components/cast_channel/cast_socket_unittest.cc
index 59e5eef51d52a397da54d28caf2776dca0339ada..2e33f94c476d968915f39c501956e1926dd24579 100644
--- a/components/cast_channel/cast_socket_unittest.cc
+++ b/components/cast_channel/cast_socket_unittest.cc
@@ -175,32 +175,27 @@ class TestCastSocket : public CastSocketImpl {
static std::unique_ptr<TestCastSocket> CreateSecure(
Logger* logger,
uint64_t device_capabilities = cast_channel::CastDeviceCapability::NONE) {
- return std::unique_ptr<TestCastSocket>(new TestCastSocket(
- CreateIPEndPointForTest(), ChannelAuthType::SSL_VERIFIED,
- kDistantTimeoutMillis, logger, device_capabilities));
+ return std::unique_ptr<TestCastSocket>(
+ new TestCastSocket(CreateIPEndPointForTest(), kDistantTimeoutMillis,
+ logger, device_capabilities));
}
TestCastSocket(const net::IPEndPoint& ip_endpoint,
- ChannelAuthType channel_auth,
int64_t timeout_ms,
Logger* logger,
uint64_t device_capabilities)
: TestCastSocket(ip_endpoint,
- channel_auth,
timeout_ms,
logger,
new net::TestNetLog(),
device_capabilities) {}
TestCastSocket(const net::IPEndPoint& ip_endpoint,
- ChannelAuthType channel_auth,
int64_t timeout_ms,
Logger* logger,
net::TestNetLog* capturing_net_log,
uint64_t device_capabilities)
- : CastSocketImpl("some_extension_id",
- ip_endpoint,
- channel_auth,
+ : CastSocketImpl(ip_endpoint,
capturing_net_log,
base::TimeDelta::FromMilliseconds(timeout_ms),
false,

Powered by Google App Engine
This is Rietveld 408576698