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

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

Issue 10066045: RefCounted types should not have public destructors, net/ (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 unified diff | Download patch | Annotate | Revision Log
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 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 online_rev_checking_(online_rev_checking) { 1421 online_rev_checking_(online_rev_checking) {
1422 } 1422 }
1423 1423
1424 virtual void GetSSLConfig(SSLConfig* config) { 1424 virtual void GetSSLConfig(SSLConfig* config) {
1425 *config = SSLConfig(); 1425 *config = SSLConfig();
1426 config->rev_checking_enabled = online_rev_checking_; 1426 config->rev_checking_enabled = online_rev_checking_;
1427 config->verify_ev_cert = ev_enabled_; 1427 config->verify_ev_cert = ev_enabled_;
1428 } 1428 }
1429 1429
1430 private: 1430 private:
1431 virtual ~TestSSLConfigService() {}
1432
1431 const bool ev_enabled_; 1433 const bool ev_enabled_;
1432 const bool online_rev_checking_; 1434 const bool online_rev_checking_;
1433 }; 1435 };
1434 1436
1435 // This the fingerprint of the "Testing CA" certificate used by the testserver. 1437 // This the fingerprint of the "Testing CA" certificate used by the testserver.
1436 // See net/data/ssl/certificates/ocsp-test-root.pem. 1438 // See net/data/ssl/certificates/ocsp-test-root.pem.
1437 static const SHA1Fingerprint kOCSPTestCertFingerprint = 1439 static const SHA1Fingerprint kOCSPTestCertFingerprint =
1438 { { 0xf1, 0xad, 0xf6, 0xce, 0x42, 0xac, 0xe7, 0xb4, 0xf4, 0x24, 1440 { { 0xf1, 0xad, 0xf6, 0xce, 0x42, 0xac, 0xe7, 0xb4, 0xf4, 0x24,
1439 0xdb, 0x1a, 0xf7, 0xa0, 0x9f, 0x09, 0xa1, 0xea, 0xf1, 0x5c } }; 1441 0xdb, 0x1a, 0xf7, 0xa0, 0x9f, 0x09, 0xa1, 0xea, 0xf1, 0x5c } };
1440 1442
(...skipping 3121 matching lines...) Expand 10 before | Expand all | Expand 10 after
4562 req.SetExtraRequestHeaders(headers); 4564 req.SetExtraRequestHeaders(headers);
4563 req.Start(); 4565 req.Start();
4564 MessageLoop::current()->Run(); 4566 MessageLoop::current()->Run();
4565 // If the net tests are being run with ChromeFrame then we need to allow for 4567 // If the net tests are being run with ChromeFrame then we need to allow for
4566 // the 'chromeframe' suffix which is added to the user agent before the 4568 // the 'chromeframe' suffix which is added to the user agent before the
4567 // closing parentheses. 4569 // closing parentheses.
4568 EXPECT_TRUE(StartsWithASCII(d.data_received(), "Lynx (textmode", true)); 4570 EXPECT_TRUE(StartsWithASCII(d.data_received(), "Lynx (textmode", true));
4569 } 4571 }
4570 4572
4571 } // namespace net 4573 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698