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

Side by Side Diff: content/test/webrtc_audio_device_test.cc

Issue 54863002: Implement a salt for MediaSource IDs that can be cleared by a user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed jois nit. Created 7 years 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
« no previous file with comments | « content/public/browser/resource_context.h ('k') | no next file » | 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 "content/test/webrtc_audio_device_test.h" 5 #include "content/test/webrtc_audio_device_test.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 168
169 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { 169 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE {
170 return false; 170 return false;
171 } 171 }
172 172
173 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { 173 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE {
174 return false; 174 return false;
175 } 175 }
176 176
177 virtual std::string GetMediaDeviceIDSalt() OVERRIDE {
178 return "";
179 }
180
177 private: 181 private:
178 net::URLRequestContext* test_request_context_; 182 net::URLRequestContext* test_request_context_;
179 183
180 DISALLOW_COPY_AND_ASSIGN(MockRTCResourceContext); 184 DISALLOW_COPY_AND_ASSIGN(MockRTCResourceContext);
181 }; 185 };
182 186
183 ACTION_P(QuitMessageLoop, loop_or_proxy) { 187 ACTION_P(QuitMessageLoop, loop_or_proxy) {
184 loop_or_proxy->PostTask(FROM_HERE, base::MessageLoop::QuitClosure()); 188 loop_or_proxy->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
185 } 189 }
186 190
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { 445 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) {
442 return network_->ReceivedRTPPacket(channel, data, len); 446 return network_->ReceivedRTPPacket(channel, data, len);
443 } 447 }
444 448
445 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, 449 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data,
446 int len) { 450 int len) {
447 return network_->ReceivedRTCPPacket(channel, data, len); 451 return network_->ReceivedRTCPPacket(channel, data, len);
448 } 452 }
449 453
450 } // namespace content 454 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/resource_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698