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

Unified Diff: services/video_capture/fake_device_test.cc

Issue 2244773002: Video Capture Mojo (1.4c): Handle Subsequent Access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FillServicePart2
Patch Set: rockot's comments Created 4 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 | « services/video_capture/fake_device_test.h ('k') | services/video_capture/fake_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/fake_device_test.cc
diff --git a/services/video_capture/fake_device_test.cc b/services/video_capture/fake_device_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..19be586d2511d280bbca6b536d56aa547b115f5e
--- /dev/null
+++ b/services/video_capture/fake_device_test.cc
@@ -0,0 +1,28 @@
+// Copyright 2016 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 "services/video_capture/fake_device_test.h"
+
+#include "base/run_loop.h"
+
+using testing::_;
+using testing::Invoke;
+
+namespace video_capture {
+
+FakeDeviceTest::FakeDeviceTest() : FakeDeviceDescriptorTest() {}
+
+FakeDeviceTest::~FakeDeviceTest() = default;
+
+void FakeDeviceTest::SetUp() {
+ FakeDeviceDescriptorTest::SetUp();
+
+ factory_->CreateDeviceProxy(
+ std::move(fake_device_descriptor_), mojo::GetProxy(&fake_device_proxy_),
+ base::Bind([](mojom::DeviceAccessResultCode result_code) {
+ ASSERT_EQ(mojom::DeviceAccessResultCode::SUCCESS, result_code);
+ }));
+}
+
+} // namespace video_capture
« no previous file with comments | « services/video_capture/fake_device_test.h ('k') | services/video_capture/fake_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698