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

Unified Diff: content/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc

Issue 48743008: Pepper: specify the security origin when enumerating media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc
diff --git a/content/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc b/content/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc
index 895bdd8e273b16c76a9b4e0ea59317972c8c8216..0864369d7cfb69647a35acc7a4f40b545527ffb0 100644
--- a/content/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc
+++ b/content/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc
@@ -18,6 +18,7 @@
#include "ppapi/proxy/resource_message_test_sink.h"
#include "ppapi/shared_impl/ppapi_permissions.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "url/gurl.h"
namespace content {
@@ -34,6 +35,7 @@ class TestDelegate : public PepperDeviceEnumerationHostHelper::Delegate {
virtual int EnumerateDevices(
PP_DeviceType_Dev /* type */,
+ const GURL& /* document_url */,
const EnumerateDevicesCallback& callback) OVERRIDE {
last_used_id_++;
callbacks_[last_used_id_] = callback;
@@ -78,7 +80,8 @@ class PepperDeviceEnumerationHostHelperTest : public testing::Test {
: ppapi_host_(&sink_, ppapi::PpapiPermissions()),
resource_host_(&ppapi_host_, 12345, 67890),
device_enumeration_(&resource_host_, &delegate_,
- PP_DEVICETYPE_DEV_AUDIOCAPTURE) {
+ PP_DEVICETYPE_DEV_AUDIOCAPTURE,
+ GURL("http://example.com")) {
}
virtual ~PepperDeviceEnumerationHostHelperTest() {}
« no previous file with comments | « content/renderer/pepper/pepper_device_enumeration_host_helper.cc ('k') | content/renderer/pepper/pepper_file_system_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698