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

Side by Side Diff: chrome/browser/extensions/api/web_request/web_request_apitest.cc

Issue 10694055: Add read-only access to POST data for webRequest's onBeforeRequest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding the channel restriction Created 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/browser/extensions/api/web_request/web_request_api.h" 6 #include "chrome/browser/extensions/api/web_request/web_request_api.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_test_message_listener.h" 9 #include "chrome/browser/extensions/extension_test_message_listener.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Test split with incognito permission. 218 // Test split with incognito permission.
219 RunPermissionTest("split", true, true, "redirected1", "redirected2"); 219 RunPermissionTest("split", true, true, "redirected1", "redirected2");
220 } 220 }
221 221
222 IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest, 222 IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest,
223 WebRequestDeclarativePermissionSplit2) { 223 WebRequestDeclarativePermissionSplit2) {
224 // Test split without incognito permission. 224 // Test split without incognito permission.
225 RunPermissionTest("split", false, false, "redirected1", ""); 225 RunPermissionTest("split", false, false, "redirected1", "");
226 } 226 }
227 227
228 IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest, WebRequestPost) {
229 if (IsPostDataEnabled())
230 ASSERT_TRUE(RunExtensionSubtest("webrequest", "test_post.html")) <<
231 message_;
232 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698