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

Side by Side Diff: net/url_request/url_request_unittest.cc

Issue 1422573008: Plumbing SSLPrivateKey (//net) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-needed forward decl. Created 5 years, 1 month 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
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | remoting/host/token_validator_base.h » ('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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 #endif 10 #endif
(...skipping 8195 matching lines...) Expand 10 before | Expand all | Expand 10 after
8206 8206
8207 base::RunLoop().Run(); 8207 base::RunLoop().Run();
8208 8208
8209 EXPECT_EQ(1, d.on_certificate_requested_count()); 8209 EXPECT_EQ(1, d.on_certificate_requested_count());
8210 EXPECT_FALSE(d.received_data_before_response()); 8210 EXPECT_FALSE(d.received_data_before_response());
8211 EXPECT_EQ(0, d.bytes_received()); 8211 EXPECT_EQ(0, d.bytes_received());
8212 8212
8213 // Send no certificate. 8213 // Send no certificate.
8214 // TODO(davidben): Get temporary client cert import (with keys) working on 8214 // TODO(davidben): Get temporary client cert import (with keys) working on
8215 // all platforms so we can test sending a cert as well. 8215 // all platforms so we can test sending a cert as well.
8216 r->ContinueWithCertificate(NULL); 8216 r->ContinueWithCertificate(nullptr, nullptr);
8217 8217
8218 base::RunLoop().Run(); 8218 base::RunLoop().Run();
8219 8219
8220 EXPECT_EQ(1, d.response_started_count()); 8220 EXPECT_EQ(1, d.response_started_count());
8221 EXPECT_FALSE(d.received_data_before_response()); 8221 EXPECT_FALSE(d.received_data_before_response());
8222 EXPECT_NE(0, d.bytes_received()); 8222 EXPECT_NE(0, d.bytes_received());
8223 } 8223 }
8224 } 8224 }
8225 8225
8226 TEST_F(HTTPSRequestTest, ResumeTest) { 8226 TEST_F(HTTPSRequestTest, ResumeTest) {
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after
9705 9705
9706 req->Start(); 9706 req->Start();
9707 req->Cancel(); 9707 req->Cancel();
9708 job->DetachRequest(); 9708 job->DetachRequest();
9709 base::RunLoop().RunUntilIdle(); 9709 base::RunLoop().RunUntilIdle();
9710 EXPECT_EQ(URLRequestStatus::CANCELED, req->status().status()); 9710 EXPECT_EQ(URLRequestStatus::CANCELED, req->status().status());
9711 EXPECT_EQ(0, d.received_redirect_count()); 9711 EXPECT_EQ(0, d.received_redirect_count());
9712 } 9712 }
9713 9713
9714 } // namespace net 9714 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | remoting/host/token_validator_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698