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

Unified Diff: chrome/browser/extensions/extension_with_management_policy_apitest.h

Issue 2934583002: Reland: chrome.webRequest support for ExtensionSettings (Closed)
Patch Set: Fix flaky test ExtensionApiTestWithManagementPolicy.InitiatorProtectedByPolicy Created 3 years, 6 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: chrome/browser/extensions/extension_with_management_policy_apitest.h
diff --git a/chrome/browser/extensions/extension_with_management_policy_apitest.h b/chrome/browser/extensions/extension_with_management_policy_apitest.h
index ef11374dc32a5a4767fbf032d5ea3336a18ad792..e57aff44c91067d6ccc4383560e8e8dcffc7514b 100644
--- a/chrome/browser/extensions/extension_with_management_policy_apitest.h
+++ b/chrome/browser/extensions/extension_with_management_policy_apitest.h
@@ -9,8 +9,14 @@
#include <vector>
#include "chrome/browser/extensions/extension_apitest.h"
+#include "chrome/browser/extensions/extension_management_test_util.h"
#include "components/policy/core/common/mock_configuration_policy_provider.h"
+struct ManagementPolicyRequestLog {
+ std::string all_headers;
+ std::string host;
+};
+
// The ExtensionSettings policy affects host permissions which impacts several
// API integration tests. This class enables easy declaration of
// ExtensionSettings policies and functions commonly used during these tests.
@@ -23,6 +29,12 @@ class ExtensionApiTestWithManagementPolicy : public ExtensionApiTest {
protected:
policy::MockConfigurationPolicyProvider policy_provider_;
+ bool BrowsedTo(const std::string& test_host);
+ void ClearRequestLog();
+ void MonitorRequestHandler(const net::test_server::HttpRequest& request);
+
+ private:
+ std::vector<ManagementPolicyRequestLog> request_log_;
DISALLOW_COPY_AND_ASSIGN(ExtensionApiTestWithManagementPolicy);
};

Powered by Google App Engine
This is Rietveld 408576698