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

Unified Diff: ppapi/tests/test_url_util.cc

Issue 23444004: Add GetPluginRefererURL to PPB_URLUtil_Dev interface to get the 'Referer' HTTP header value that wa… (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 4 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: ppapi/tests/test_url_util.cc
===================================================================
--- ppapi/tests/test_url_util.cc (revision 219784)
+++ ppapi/tests/test_url_util.cc (working copy)
@@ -28,6 +28,7 @@
RUN_TEST(DocumentCanAccessDocument, filter);
RUN_TEST(GetDocumentURL, filter);
RUN_TEST(GetPluginInstanceURL, filter);
+ RUN_TEST(GetPluginRefererURL, filter);
}
std::string TestURLUtil::TestCanonicalize() {
@@ -136,3 +137,9 @@
ASSERT_EQ(url.AsString(), "http://a.b.c/test");
PASS();
}
+
+std::string TestURLUtil::TestGetPluginRefererURL() {
+ pp::Var url = util_->GetPluginRefererURL(instance_);
+ ASSERT_TRUE(url.is_undefined());
+ PASS();
+}

Powered by Google App Engine
This is Rietveld 408576698