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

Side by Side Diff: media/capture/video/linux/camera_facing_chromeos_unittest.cc

Issue 2508803002: Rotate frames correctly for back camera (Closed)
Patch Set: add copy in BUILD.gn 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <string>
6
7 #include "media/capture/video/linux/camera_facing_chromeos.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace media {
11
12 TEST(CameraFacingChromeOSTest, ParseSuccessfully) {
13 CameraFacingChromeOS camera_facing(
14 std::string("fake_camera_characteristics.conf"));
mcasas 2016/12/05 18:23:19 I don't think you can access files from unittests,
shenghao 2016/12/06 10:51:28 Done.
15 EXPECT_EQ(CameraFacingChromeOS::LensFacing::BACK,
16 camera_facing.GetCameraFacing(std::string("/dev/video2"),
17 std::string("04f2:b53a")));
18 }
19
20 TEST(CameraFacingChromeOSTest, ConfigFileNotExist) {
21 CameraFacingChromeOS camera_facing(std::string("file_not_exist"));
22 EXPECT_EQ(CameraFacingChromeOS::LensFacing::FRONT,
23 camera_facing.GetCameraFacing(std::string("/dev/video2"),
24 std::string("04f2:b53a")));
25 }
26
27 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/linux/camera_facing_chromeos.cc ('k') | media/capture/video/linux/fake_camera_characteristics.conf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698