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

Unified Diff: media/base/video_capture_types_unittest.cc

Issue 1323093006: Change the media::PowerLineFrequency from an enum class to a proper class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass around PowerLineFrequency objects in VideoCaptureDevice instead of integers Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/video_capture_types.cc ('k') | media/capture/video/linux/video_capture_device_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_capture_types_unittest.cc
diff --git a/media/base/video_capture_types_unittest.cc b/media/base/video_capture_types_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1a9b977feab1b59e2a7b3466b74819848890f080
--- /dev/null
+++ b/media/base/video_capture_types_unittest.cc
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "video_capture_types.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace media {
+ TEST(PowerLineFrequency, setAndTest) {
+ PowerLineFrequency p;
+ EXPECT_EQ(p.get(), 0);
+ EXPECT_TRUE(p.valid());
+ p = PowerLineFrequency::FREQUENCY_50HZ;
+ EXPECT_EQ(p.get(), 50);
+ EXPECT_TRUE(p.valid());
+ p = PowerLineFrequency::FREQUENCY_60HZ;
+ EXPECT_EQ(p.get(), 60);
+ EXPECT_TRUE(p.valid());
+ }
+}
« no previous file with comments | « media/base/video_capture_types.cc ('k') | media/capture/video/linux/video_capture_device_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698