OLD | NEW |
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/url_request/url_request_context.h" | 7 #include "net/url_request/url_request_context.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 bool MockResourceContext::AllowMicAccess(const GURL& origin) { | 33 bool MockResourceContext::AllowMicAccess(const GURL& origin) { |
34 return mic_allowed_; | 34 return mic_allowed_; |
35 } | 35 } |
36 | 36 |
37 bool MockResourceContext::AllowCameraAccess(const GURL& origin) { | 37 bool MockResourceContext::AllowCameraAccess(const GURL& origin) { |
38 return camera_allowed_; | 38 return camera_allowed_; |
39 } | 39 } |
40 | 40 |
| 41 std::string MockResourceContext::GetMediaDeviceIDSalt() { |
| 42 return "mock_salt"; |
| 43 } |
| 44 |
41 } // namespace content | 45 } // namespace content |
OLD | NEW |