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

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: Moved GetMediaDeviceIDSalt to ResourceContext. 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/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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 166 }
167 167
168 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { 168 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE {
169 return false; 169 return false;
170 } 170 }
171 171
172 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { 172 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE {
173 return false; 173 return false;
174 } 174 }
175 175
176 virtual std::string GetMediaDeviceIDSalt() OVERRIDE {
177 return "";
178 }
179
176 private: 180 private:
177 net::URLRequestContext* test_request_context_; 181 net::URLRequestContext* test_request_context_;
178 182
179 DISALLOW_COPY_AND_ASSIGN(MockRTCResourceContext); 183 DISALLOW_COPY_AND_ASSIGN(MockRTCResourceContext);
180 }; 184 };
181 185
182 ACTION_P(QuitMessageLoop, loop_or_proxy) { 186 ACTION_P(QuitMessageLoop, loop_or_proxy) {
183 loop_or_proxy->PostTask(FROM_HERE, base::MessageLoop::QuitClosure()); 187 loop_or_proxy->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
184 } 188 }
185 189
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { 442 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) {
439 return network_->ReceivedRTPPacket(channel, data, len); 443 return network_->ReceivedRTPPacket(channel, data, len);
440 } 444 }
441 445
442 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, 446 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data,
443 int len) { 447 int len) {
444 return network_->ReceivedRTCPPacket(channel, data, len); 448 return network_->ReceivedRTCPPacket(channel, data, len);
445 } 449 }
446 450
447 } // namespace content 451 } // namespace content
OLDNEW
« content/public/browser/resource_context.h ('K') | « content/public/test/mock_resource_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698