summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_job_spdy2_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/websockets/websocket_job_spdy2_unittest.cc')
-rw-r--r--net/websockets/websocket_job_spdy2_unittest.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/websockets/websocket_job_spdy2_unittest.cc b/net/websockets/websocket_job_spdy2_unittest.cc
index ebcc72f..05731f5 100644
--- a/net/websockets/websocket_job_spdy2_unittest.cc
+++ b/net/websockets/websocket_job_spdy2_unittest.cc
@@ -174,7 +174,7 @@ class MockCookieStore : public net::CookieStore {
const net::CookieOptions& options) {
std::string result;
for (size_t i = 0; i < entries_.size(); i++) {
- Entry &entry = entries_[i];
+ Entry& entry = entries_[i];
if (url == entry.url) {
if (!result.empty()) {
result += "; ";
@@ -250,11 +250,12 @@ class MockSSLConfigService : public net::SSLConfigService {
class MockURLRequestContext : public net::URLRequestContext {
public:
explicit MockURLRequestContext(net::CookieStore* cookie_store)
- : transport_security_state_(std::string()) {
+ : transport_security_state_() {
set_cookie_store(cookie_store);
set_transport_security_state(&transport_security_state_);
net::TransportSecurityState::DomainState state;
- state.expiry = base::Time::Now() + base::TimeDelta::FromSeconds(1000);
+ state.upgrade_expiry = base::Time::Now() +
+ base::TimeDelta::FromSeconds(1000);
transport_security_state_.EnableHost("upgrademe.com", state);
}
@@ -268,7 +269,7 @@ class MockURLRequestContext : public net::URLRequestContext {
class MockHttpTransactionFactory : public net::HttpTransactionFactory {
public:
- MockHttpTransactionFactory(net::OrderedSocketData* data) {
+ explicit MockHttpTransactionFactory(net::OrderedSocketData* data) {
data_ = data;
net::MockConnect connect_data(net::SYNCHRONOUS, net::OK);
data_->set_connect_data(connect_data);