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

Side by Side Diff: content/browser/renderer_host/media/audio_input_device_manager_unittest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "content/browser/renderer_host/media/audio_input_device_manager.h" 10 #include "content/browser/renderer_host/media/audio_input_device_manager.h"
11 #include "content/browser/renderer_host/media/audio_input_device_manager_event_h andler.h" 11 #include "content/browser/renderer_host/media/audio_input_device_manager_event_h andler.h"
12 #include "content/test/test_browser_thread.h" 12 #include "content/test/test_browser_thread.h"
13 #include "media/audio/audio_manager.h" 13 #include "media/audio/audio_manager.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using ::testing::_; 17 using ::testing::_;
18 using ::testing::AnyNumber; 18 using ::testing::AnyNumber;
19 using ::testing::InSequence; 19 using ::testing::InSequence;
20 using ::testing::Return; 20 using ::testing::Return;
21 using content::BrowserThread;
21 22
22 namespace media_stream { 23 namespace media_stream {
23 24
24 class MockAudioInputDeviceManagerListener 25 class MockAudioInputDeviceManagerListener
25 : public MediaStreamProviderListener { 26 : public MediaStreamProviderListener {
26 public: 27 public:
27 MockAudioInputDeviceManagerListener() {} 28 MockAudioInputDeviceManagerListener() {}
28 virtual ~MockAudioInputDeviceManagerListener() {} 29 virtual ~MockAudioInputDeviceManagerListener() {}
29 30
30 MOCK_METHOD2(Opened, void(MediaStreamType, const int)); 31 MOCK_METHOD2(Opened, void(MediaStreamType, const int));
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 OnDeviceStarted(second_session_id, 0)) 390 OnDeviceStarted(second_session_id, 0))
390 .Times(1); 391 .Times(1);
391 EXPECT_CALL(*audio_input_listener_, Closed(kAudioCapture, first_session_id)) 392 EXPECT_CALL(*audio_input_listener_, Closed(kAudioCapture, first_session_id))
392 .Times(1); 393 .Times(1);
393 EXPECT_CALL(*audio_input_listener_, Closed(kAudioCapture, second_session_id)) 394 EXPECT_CALL(*audio_input_listener_, Closed(kAudioCapture, second_session_id))
394 .Times(1); 395 .Times(1);
395 SyncWithAudioInputDeviceManagerThread(); 396 SyncWithAudioInputDeviceManagerThread();
396 } 397 }
397 398
398 } // namespace media_stream 399 } // namespace media_stream
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698