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

Side by Side Diff: chrome/browser/ssl/ssl_client_certificate_selector_test.h

Issue 51953002: [Net] Add a priority parameter to URLRequest's constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 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 | 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 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_TEST_H_ 5 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_TEST_H_
6 #define CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_TEST_H_ 6 #define CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_TEST_H_
7 7
8 #include "base/memory/scoped_ptr.h"
8 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
9 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h" 10 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h"
10 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace net { 14 namespace net {
14 class URLRequestContextGetter; 15 class URLRequestContextGetter;
15 } 16 }
16 17
17 class SSLClientCertificateSelectorTestBase : public InProcessBrowserTest { 18 class SSLClientCertificateSelectorTestBase : public InProcessBrowserTest {
18 public: 19 public:
19 SSLClientCertificateSelectorTestBase(); 20 SSLClientCertificateSelectorTestBase();
20 virtual ~SSLClientCertificateSelectorTestBase(); 21 virtual ~SSLClientCertificateSelectorTestBase();
21 22
22 // InProcessBrowserTest: 23 // InProcessBrowserTest:
23 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; 24 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE;
24 virtual void SetUpOnMainThread() OVERRIDE; 25 virtual void SetUpOnMainThread() OVERRIDE;
25 virtual void CleanUpOnMainThread() OVERRIDE; 26 virtual void CleanUpOnMainThread() OVERRIDE;
26 27
27 virtual void SetUpOnIOThread(); 28 virtual void SetUpOnIOThread();
28 virtual void CleanUpOnIOThread(); 29 virtual void CleanUpOnIOThread();
29 30
30 protected: 31 protected:
31 net::URLRequest* MakeURLRequest( 32 scoped_ptr<net::URLRequest> MakeURLRequest(
32 net::URLRequestContextGetter* context_getter); 33 net::URLRequestContextGetter* context_getter);
33 34
34 base::WaitableEvent io_loop_finished_event_; 35 base::WaitableEvent io_loop_finished_event_;
35 36
36 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 37 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
37 net::URLRequest* url_request_; 38 net::URLRequest* url_request_;
38 39
39 scoped_refptr<net::X509Certificate> mit_davidben_cert_; 40 scoped_refptr<net::X509Certificate> mit_davidben_cert_;
40 scoped_refptr<net::X509Certificate> foaf_me_chromium_test_cert_; 41 scoped_refptr<net::X509Certificate> foaf_me_chromium_test_cert_;
41 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_; 42 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
42 scoped_refptr<testing::StrictMock<SSLClientAuthRequestorMock> > 43 scoped_refptr<testing::StrictMock<SSLClientAuthRequestorMock> >
43 auth_requestor_; 44 auth_requestor_;
44 }; 45 };
45 46
46 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_TEST_H_ 47 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/iframe_source_unittest.cc ('k') | chrome/browser/ssl/ssl_client_certificate_selector_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698