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

Side by Side Diff: net/spdy/spdy_session_spdy3_unittest.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_session_spdy2_unittest.cc ('k') | net/spdy/spdy_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include "net/base/cert_test_util.h" 7 #include "net/base/cert_test_util.h"
8 #include "net/base/host_cache.h" 8 #include "net/base/host_cache.h"
9 #include "net/base/ip_endpoint.h" 9 #include "net/base/ip_endpoint.h"
10 #include "net/base/net_log_unittest.h" 10 #include "net/base/net_log_unittest.h"
(...skipping 10 matching lines...) Expand all
21 21
22 namespace { 22 namespace {
23 23
24 static int g_delta_seconds = 0; 24 static int g_delta_seconds = 0;
25 base::TimeTicks TheNearFuture() { 25 base::TimeTicks TheNearFuture() {
26 return base::TimeTicks::Now() + base::TimeDelta::FromSeconds(g_delta_seconds); 26 return base::TimeTicks::Now() + base::TimeDelta::FromSeconds(g_delta_seconds);
27 } 27 }
28 28
29 class ClosingDelegate : public SpdyStream::Delegate { 29 class ClosingDelegate : public SpdyStream::Delegate {
30 public: 30 public:
31 ClosingDelegate(SpdyStream* stream) : stream_(stream) {} 31 explicit ClosingDelegate(SpdyStream* stream) : stream_(stream) {}
32 32
33 // SpdyStream::Delegate implementation: 33 // SpdyStream::Delegate implementation:
34 virtual bool OnSendHeadersComplete(int status) OVERRIDE { 34 virtual bool OnSendHeadersComplete(int status) OVERRIDE {
35 return true; 35 return true;
36 } 36 }
37 virtual int OnSendBody() OVERRIDE { 37 virtual int OnSendBody() OVERRIDE {
38 return OK; 38 return OK;
39 } 39 }
40 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE { 40 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE {
41 return OK; 41 return OK;
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 BoundNetLog())); 1914 BoundNetLog()));
1915 1915
1916 EXPECT_EQ(OK, session->InitializeWithSocket(connection.release(), false, OK)); 1916 EXPECT_EQ(OK, session->InitializeWithSocket(connection.release(), false, OK));
1917 EXPECT_TRUE(session->VerifyDomainAuthentication("www.example.org")); 1917 EXPECT_TRUE(session->VerifyDomainAuthentication("www.example.org"));
1918 EXPECT_TRUE(session->VerifyDomainAuthentication("mail.example.org")); 1918 EXPECT_TRUE(session->VerifyDomainAuthentication("mail.example.org"));
1919 EXPECT_FALSE(session->VerifyDomainAuthentication("mail.example.com")); 1919 EXPECT_FALSE(session->VerifyDomainAuthentication("mail.example.com"));
1920 EXPECT_FALSE(session->VerifyDomainAuthentication("mail.google.com")); 1920 EXPECT_FALSE(session->VerifyDomainAuthentication("mail.google.com"));
1921 } 1921 }
1922 1922
1923 } // namespace net 1923 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_spdy2_unittest.cc ('k') | net/spdy/spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698