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

Side by Side Diff: media/capture/video/mac/video_capture_device_factory_mac_unittest.mm

Issue 2529493002: mac: Remove more media/base/mac glue unneeded now that we target 10.9 (Closed)
Patch Set: . Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import "media/base/mac/avfoundation_glue.h"
5 #include "media/capture/video/mac/video_capture_device_factory_mac.h" 4 #include "media/capture/video/mac/video_capture_device_factory_mac.h"
6 #include "media/capture/video/mac/video_capture_device_mac.h" 5 #include "media/capture/video/mac/video_capture_device_mac.h"
7 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
8 7
9 namespace media { 8 namespace media {
10 9
11 TEST(VideoCaptureDeviceFactoryMacTest, ListDevicesAVFoundation) { 10 TEST(VideoCaptureDeviceFactoryMacTest, ListDevicesAVFoundation) {
12 AVFoundationGlue::InitializeAVFoundation();
13 VideoCaptureDeviceFactoryMac video_capture_device_factory; 11 VideoCaptureDeviceFactoryMac video_capture_device_factory;
14 12
15 VideoCaptureDeviceDescriptors descriptors; 13 VideoCaptureDeviceDescriptors descriptors;
16 video_capture_device_factory.GetDeviceDescriptors(&descriptors); 14 video_capture_device_factory.GetDeviceDescriptors(&descriptors);
17 if (descriptors.empty()) { 15 if (descriptors.empty()) {
18 DVLOG(1) << "No camera available. Exiting test."; 16 DVLOG(1) << "No camera available. Exiting test.";
19 return; 17 return;
20 } 18 }
21 for (const auto& descriptor : descriptors) 19 for (const auto& descriptor : descriptors)
22 EXPECT_EQ(VideoCaptureApi::MACOSX_AVFOUNDATION, descriptor.capture_api); 20 EXPECT_EQ(VideoCaptureApi::MACOSX_AVFOUNDATION, descriptor.capture_api);
23 } 21 }
24 22
25 }; // namespace media 23 }; // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/mac/video_capture_device_factory_mac.mm ('k') | media/capture/video/mac/video_capture_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698