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

Unified Diff: media/audio/sounds/test_data.cc

Issue 115693004: Added volume adjust sound behind the flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split of WavAudioHandler is rolled back. 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/sounds/test_data.cc
diff --git a/media/audio/sounds/test_data.cc b/media/audio/sounds/test_data.cc
index dc667c9996d567bed9418ec29edc82394722d933..a233be1e23d5ceda2ed623585be33a395916e6dc 100644
--- a/media/audio/sounds/test_data.cc
+++ b/media/audio/sounds/test_data.cc
@@ -13,18 +13,22 @@ TestObserver::TestObserver(const base::Closure& quit)
: loop_(base::MessageLoop::current()),
quit_(quit),
num_play_requests_(0),
+ num_replays_(0),
num_stop_requests_(0),
cursor_(0) {
DCHECK(loop_);
}
-TestObserver::~TestObserver() {
-}
+TestObserver::~TestObserver() {}
void TestObserver::OnPlay() {
++num_play_requests_;
}
+void TestObserver::OnReplay() {
+ ++num_replays_;
+}
+
void TestObserver::OnStop(size_t cursor) {
++num_stop_requests_;
cursor_ = cursor;

Powered by Google App Engine
This is Rietveld 408576698