| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |