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

Unified Diff: media/video/capture/video_capture_device_unittest.cc

Issue 17846002: Refactor the VideoCaptureDevice::Name struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 6 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
Index: media/video/capture/video_capture_device_unittest.cc
diff --git a/media/video/capture/video_capture_device_unittest.cc b/media/video/capture/video_capture_device_unittest.cc
index fb0683df7c7b727c5af51077a82677d9ae9449a7..696c51c4e79ecb6e2c4b95e9cf8efda259a4e8c5 100644
--- a/media/video/capture/video_capture_device_unittest.cc
+++ b/media/video/capture/video_capture_device_unittest.cc
@@ -127,9 +127,7 @@ class VideoCaptureDeviceTest : public testing::Test {
};
TEST_F(VideoCaptureDeviceTest, OpenInvalidDevice) {
- VideoCaptureDevice::Name device_name;
- device_name.device_name = "jibberish";
- device_name.unique_id = "jibberish";
+ VideoCaptureDevice::Name device_name("jibberish", "jibberish");
VideoCaptureDevice* device = VideoCaptureDevice::Create(device_name);
EXPECT_TRUE(device == NULL);
}

Powered by Google App Engine
This is Rietveld 408576698