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

Unified Diff: net/websockets/websocket_job_spdy2_unittest.cc

Issue 9415040: Refactor TransportSecurityState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | net/websockets/websocket_job_spdy3_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_job_spdy2_unittest.cc
===================================================================
--- net/websockets/websocket_job_spdy2_unittest.cc (revision 134551)
+++ net/websockets/websocket_job_spdy2_unittest.cc (working copy)
@@ -174,7 +174,7 @@
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 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 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);
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | net/websockets/websocket_job_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698