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

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

Issue 317253004: test_runner: Migrate MockWebAudioDevice to our Chromium C++ style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/test_runner/mock_web_audio_device.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/MockWebAudioDevice.h" 5 #include "content/shell/renderer/test_runner/mock_web_audio_device.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 MockWebAudioDevice::MockWebAudioDevice(double sampleRate) 9 MockWebAudioDevice::MockWebAudioDevice(double sample_rate)
10 : m_sampleRate(sampleRate) 10 : sample_rate_(sample_rate) {}
11 {
12 }
13 11
14 MockWebAudioDevice::~MockWebAudioDevice() 12 MockWebAudioDevice::~MockWebAudioDevice() {}
15 {
16 }
17 13
18 void MockWebAudioDevice::start() 14 void MockWebAudioDevice::start() {}
19 {
20 }
21 15
22 void MockWebAudioDevice::stop() 16 void MockWebAudioDevice::stop() {}
23 {
24 }
25 17
26 double MockWebAudioDevice::sampleRate() 18 double MockWebAudioDevice::sampleRate() {
27 { 19 return sample_rate_;
28 return m_sampleRate;
29 } 20 }
30 21
31 } // namespace content 22 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/mock_web_audio_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698