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

Side by Side Diff: content/browser/renderer_host/media/video_capture_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 // Unit test for VideoCaptureManager 5 // Unit test for VideoCaptureManager
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "content/browser/renderer_host/media/media_stream_provider.h" 13 #include "content/browser/renderer_host/media/media_stream_provider.h"
14 #include "content/browser/renderer_host/media/video_capture_manager.h" 14 #include "content/browser/renderer_host/media/video_capture_manager.h"
15 #include "content/common/media/media_stream_options.h" 15 #include "content/common/media/media_stream_options.h"
16 #include "content/test/test_browser_thread.h" 16 #include "content/test/test_browser_thread.h"
17 #include "media/video/capture/video_capture_device.h" 17 #include "media/video/capture/video_capture_device.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 using ::testing::_; 21 using ::testing::_;
22 using ::testing::AnyNumber; 22 using ::testing::AnyNumber;
23 using ::testing::InSequence; 23 using ::testing::InSequence;
24 using ::testing::Return; 24 using ::testing::Return;
25 using content::BrowserThread;
25 26
26 namespace media_stream { 27 namespace media_stream {
27 28
28 // Listener class used to track progress of VideoCaptureManager test 29 // Listener class used to track progress of VideoCaptureManager test
29 class MockMediaStreamProviderListener : public MediaStreamProviderListener { 30 class MockMediaStreamProviderListener : public MediaStreamProviderListener {
30 public: 31 public:
31 MockMediaStreamProviderListener() 32 MockMediaStreamProviderListener()
32 : devices_() { 33 : devices_() {
33 } 34 }
34 ~MockMediaStreamProviderListener() {} 35 ~MockMediaStreamProviderListener() {}
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 vcm_->Open(*it); 300 vcm_->Open(*it);
300 301
301 // Wait to check callbacks before removing the listener 302 // Wait to check callbacks before removing the listener
302 SyncWithVideoCaptureManagerThread(); 303 SyncWithVideoCaptureManagerThread();
303 304
304 // Delete the manager. 305 // Delete the manager.
305 vcm_.reset(); 306 vcm_.reset();
306 } 307 }
307 308
308 } // namespace 309 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698