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

Side by Side Diff: content/browser/media/webrtc_internals_unittest.cc

Issue 1272223003: Implement writing mic audio input data to file for debugging purposes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 3 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "content/browser/media/webrtc_internals.h" 8 #include "content/browser/media/webrtc_internals.h"
9 #include "content/browser/media/webrtc_internals_ui_observer.h" 9 #include "content/browser/media/webrtc_internals_ui_observer.h"
10 #include "content/public/test/test_browser_thread.h" 10 #include "content/public/test/test_browser_thread.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 EXPECT_EQ("addStats", observer->command()); 271 EXPECT_EQ("addStats", observer->command());
272 base::DictionaryValue* dict = NULL; 272 base::DictionaryValue* dict = NULL;
273 EXPECT_TRUE(observer->value()->GetAsDictionary(&dict)); 273 EXPECT_TRUE(observer->value()->GetAsDictionary(&dict));
274 274
275 VerifyInt(dict, "pid", pid); 275 VerifyInt(dict, "pid", pid);
276 VerifyInt(dict, "lid", lid); 276 VerifyInt(dict, "lid", lid);
277 VerifyList(dict, "reports", list); 277 VerifyList(dict, "reports", list);
278 } 278 }
279 279
280 TEST_F(WebRtcInternalsTest, AecRecordingFileSelectionCanceled) { 280 TEST_F(WebRtcInternalsTest, AudioDebugRecordingsFileSelectionCanceled) {
281 scoped_ptr<MockWebRtcInternalsProxy> observer(new MockWebRtcInternalsProxy()); 281 scoped_ptr<MockWebRtcInternalsProxy> observer(new MockWebRtcInternalsProxy());
282 WebRTCInternals::GetInstance()->AddObserver(observer.get()); 282 WebRTCInternals::GetInstance()->AddObserver(observer.get());
283 WebRTCInternals::GetInstance()->FileSelectionCanceled(NULL); 283 WebRTCInternals::GetInstance()->FileSelectionCanceled(NULL);
284 EXPECT_EQ("aecRecordingFileSelectionCancelled", observer->command()); 284 EXPECT_EQ("audioDebugRecordingsFileSelectionCancelled", observer->command());
285 EXPECT_EQ(NULL, observer->value()); 285 EXPECT_EQ(NULL, observer->value());
286 } 286 }
287 287
288 } // namespace content 288 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698