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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/renderer/test_runner/mock_web_audio_device.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/mock_web_audio_device.cc
diff --git a/content/shell/renderer/test_runner/MockWebAudioDevice.cpp b/content/shell/renderer/test_runner/mock_web_audio_device.cc
similarity index 38%
rename from content/shell/renderer/test_runner/MockWebAudioDevice.cpp
rename to content/shell/renderer/test_runner/mock_web_audio_device.cc
index 4ca2cd5ed76e67d297d8052b08415687a4c04caf..e4c8534611c2604db5d6dfb5df3f4582c98c1c3c 100644
--- a/content/shell/renderer/test_runner/MockWebAudioDevice.cpp
+++ b/content/shell/renderer/test_runner/mock_web_audio_device.cc
@@ -2,30 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/shell/renderer/test_runner/MockWebAudioDevice.h"
+#include "content/shell/renderer/test_runner/mock_web_audio_device.h"
namespace content {
-MockWebAudioDevice::MockWebAudioDevice(double sampleRate)
- : m_sampleRate(sampleRate)
-{
-}
+MockWebAudioDevice::MockWebAudioDevice(double sample_rate)
+ : sample_rate_(sample_rate) {}
-MockWebAudioDevice::~MockWebAudioDevice()
-{
-}
+MockWebAudioDevice::~MockWebAudioDevice() {}
-void MockWebAudioDevice::start()
-{
-}
+void MockWebAudioDevice::start() {}
-void MockWebAudioDevice::stop()
-{
-}
+void MockWebAudioDevice::stop() {}
-double MockWebAudioDevice::sampleRate()
-{
- return m_sampleRate;
+double MockWebAudioDevice::sampleRate() {
+ return sample_rate_;
}
} // namespace content
« 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