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

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

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « content/browser/renderer_host/media/video_capture_manager.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/media/video_capture_manager.h" 7 #include "content/browser/renderer_host/media/video_capture_manager.h"
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "content/browser/browser_thread_impl.h" 18 #include "content/browser/browser_thread_impl.h"
19 #include "content/browser/renderer_host/media/media_stream_provider.h" 19 #include "content/browser/renderer_host/media/media_stream_provider.h"
20 #include "content/browser/renderer_host/media/video_capture_controller_event_han dler.h" 20 #include "content/browser/renderer_host/media/video_capture_controller_event_han dler.h"
21 #include "content/common/media/media_stream_options.h" 21 #include "content/common/media/media_stream_options.h"
22 #include "media/capture/video/fake_video_capture_device_factory.h" 22 #include "device/capture/video/fake_video_capture_device_factory.h"
23 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 using ::testing::_; 26 using ::testing::_;
27 using ::testing::AnyNumber; 27 using ::testing::AnyNumber;
28 using ::testing::DoAll; 28 using ::testing::DoAll;
29 using ::testing::InSequence; 29 using ::testing::InSequence;
30 using ::testing::InvokeWithoutArgs; 30 using ::testing::InvokeWithoutArgs;
31 using ::testing::Return; 31 using ::testing::Return;
32 using ::testing::SaveArg; 32 using ::testing::SaveArg;
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 // Wait to check callbacks before removing the listener. 616 // Wait to check callbacks before removing the listener.
617 message_loop_->RunUntilIdle(); 617 message_loop_->RunUntilIdle();
618 vcm_->Unregister(); 618 vcm_->Unregister();
619 } 619 }
620 #endif 620 #endif
621 621
622 // TODO(mcasas): Add a test to check consolidation of the supported formats 622 // TODO(mcasas): Add a test to check consolidation of the supported formats
623 // provided by the device when http://crbug.com/323913 is closed. 623 // provided by the device when http://crbug.com/323913 is closed.
624 624
625 } // namespace content 625 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_manager.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698