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

Unified Diff: chrome/browser/extensions/api/web_request/web_request_apitest.cc

Issue 11358159: Split ExtensionWebRequestApiTest.PostData into two (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/webrequest/test_post.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/web_request/web_request_apitest.cc
diff --git a/chrome/browser/extensions/api/web_request/web_request_apitest.cc b/chrome/browser/extensions/api/web_request/web_request_apitest.cc
index 36783634071d2a5795ae6442ed99b2e78c897285..666aa0e6cd874c2472ec2d381ed2c447b199cfdb 100644
--- a/chrome/browser/extensions/api/web_request/web_request_apitest.cc
+++ b/chrome/browser/extensions/api/web_request/web_request_apitest.cc
@@ -242,9 +242,18 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest,
RunPermissionTest("split", false, false, "redirected1", "");
}
-IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest, PostData) {
+IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest, PostData1) {
// Request body access is only enabled on dev (and canary).
Feature::ScopedCurrentChannel sc(chrome::VersionInfo::CHANNEL_DEV);
- ASSERT_TRUE(RunExtensionSubtest("webrequest", "test_post.html")) <<
+ // Test HTML form POST data access with the default and "url" encoding.
+ ASSERT_TRUE(RunExtensionSubtest("webrequest", "test_post1.html")) <<
+ message_;
+}
+
+IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest, PostData2) {
+ // Request body access is only enabled on dev (and canary).
+ Feature::ScopedCurrentChannel sc(chrome::VersionInfo::CHANNEL_DEV);
+ // Test HTML form POST data access with the multipart and plaintext encoding.
+ ASSERT_TRUE(RunExtensionSubtest("webrequest", "test_post2.html")) <<
message_;
}
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/webrequest/test_post.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698