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

Unified Diff: content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc

Issue 100743003: Extend content::DesktopMediaID to allow Aura windows as capture sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc
diff --git a/content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc b/content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc
index 19fdad1a4f95068057b08be18f582dd217a1b28c..8ad1495a70c2a2fd361bd9e8b59fc2f38bf63adf 100644
--- a/content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc
+++ b/content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc
@@ -6,6 +6,7 @@
#include "base/synchronization/waitable_event.h"
#include "content/browser/browser_thread_impl.h"
+#include "content/public/browser/desktop_media_id.h"
#include "media/video/capture/video_capture_types.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -92,9 +93,9 @@ class DesktopCaptureDeviceAuraTest : public testing::Test {
};
TEST_F(DesktopCaptureDeviceAuraTest, StartAndStop) {
- DesktopMediaID source(DesktopMediaID::TYPE_SCREEN, 0);
scoped_ptr<media::VideoCaptureDevice> capture_device(
- DesktopCaptureDeviceAura::Create(source));
+ DesktopCaptureDeviceAura::Create(
+ content::DesktopMediaID::RegisterAuraWindow(root_window())));
scoped_ptr<MockDeviceClient> client(new MockDeviceClient());
EXPECT_CALL(*client, OnError()).Times(0);

Powered by Google App Engine
This is Rietveld 408576698