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

Side by Side Diff: content/public/test/mock_resource_context.cc

Issue 42773002: Get ClientCertStore through ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update unittest, clang fix 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 #include "content/public/test/mock_resource_context.h" 5 #include "content/public/test/mock_resource_context.h"
6 6
7 #include "net/ssl/client_cert_store.h"
7 #include "net/url_request/url_request_context.h" 8 #include "net/url_request/url_request_context.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 MockResourceContext::MockResourceContext() 12 MockResourceContext::MockResourceContext()
12 : test_request_context_(NULL) { 13 : test_request_context_(NULL) {
13 } 14 }
14 15
15 MockResourceContext::MockResourceContext( 16 MockResourceContext::MockResourceContext(
16 net::URLRequestContext* test_request_context) 17 net::URLRequestContext* test_request_context)
(...skipping 14 matching lines...) Expand all
31 } 32 }
32 33
33 bool MockResourceContext::AllowMicAccess(const GURL& origin) { 34 bool MockResourceContext::AllowMicAccess(const GURL& origin) {
34 return mic_allowed_; 35 return mic_allowed_;
35 } 36 }
36 37
37 bool MockResourceContext::AllowCameraAccess(const GURL& origin) { 38 bool MockResourceContext::AllowCameraAccess(const GURL& origin) {
38 return camera_allowed_; 39 return camera_allowed_;
39 } 40 }
40 41
42 scoped_ptr<net::ClientCertStore> MockResourceContext::GetClientCertStore() {
43 return scoped_ptr<net::ClientCertStore>();
44 }
45
41 } // namespace content 46 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698