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

Side by Side Diff: content/shell/renderer/test_runner/mock_web_media_stream_center.cc

Issue 458723002: TestInterfaces to chromium c++ style, rename methods and remove un-used header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated Created 6 years, 4 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/shell/renderer/test_runner/mock_web_media_stream_center.h" 5 #include "content/shell/renderer/test_runner/mock_web_media_stream_center.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/shell/renderer/test_runner/TestInterfaces.h"
9 #include "content/shell/renderer/test_runner/WebTestDelegate.h" 8 #include "content/shell/renderer/test_runner/WebTestDelegate.h"
9 #include "content/shell/renderer/test_runner/test_interfaces.h"
10 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" 10 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h"
11 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h" 11 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h"
12 #include "third_party/WebKit/public/platform/WebMediaStream.h" 12 #include "third_party/WebKit/public/platform/WebMediaStream.h"
13 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" 13 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h"
14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" 14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
16 #include "third_party/WebKit/public/platform/WebMediaStreamTrackSourcesRequest.h " 16 #include "third_party/WebKit/public/platform/WebMediaStreamTrackSourcesRequest.h "
17 #include "third_party/WebKit/public/platform/WebSourceInfo.h" 17 #include "third_party/WebKit/public/platform/WebSourceInfo.h"
18 #include "third_party/WebKit/public/platform/WebVector.h" 18 #include "third_party/WebKit/public/platform/WebVector.h"
19 19
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 for (size_t i = 0; i < audio_tracks.size(); ++i) { 133 for (size_t i = 0; i < audio_tracks.size(); ++i) {
134 blink::WebMediaStreamSource source = audio_tracks[i].source(); 134 blink::WebMediaStreamSource source = audio_tracks[i].source();
135 if (source.requiresAudioConsumer()) { 135 if (source.requiresAudioConsumer()) {
136 MockWebAudioDestinationConsumer* consumer = 136 MockWebAudioDestinationConsumer* consumer =
137 new MockWebAudioDestinationConsumer(); 137 new MockWebAudioDestinationConsumer();
138 source.addAudioConsumer(consumer); 138 source.addAudioConsumer(consumer);
139 source.removeAudioConsumer(consumer); 139 source.removeAudioConsumer(consumer);
140 delete consumer; 140 delete consumer;
141 } 141 }
142 } 142 }
143 interfaces_->delegate()->postTask(new NewTrackTask(this, stream)); 143 interfaces_->GetDelegate()->postTask(new NewTrackTask(this, stream));
144 } 144 }
145 145
146 blink::WebAudioSourceProvider* 146 blink::WebAudioSourceProvider*
147 MockWebMediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( 147 MockWebMediaStreamCenter::createWebAudioSourceFromMediaStreamTrack(
148 const blink::WebMediaStreamTrack& track) { 148 const blink::WebMediaStreamTrack& track) {
149 return NULL; 149 return NULL;
150 } 150 }
151 151
152 } // namespace content 152 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/gamepad_controller.cc ('k') | content/shell/renderer/test_runner/mock_web_midi_accessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698