| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <queue> | 5 #include <queue> |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/extension_event_router_forwarder.h" | 10 #include "chrome/browser/extensions/extension_event_router_forwarder.h" |
| 11 #include "chrome/browser/extensions/extension_webrequest_api.h" | 11 #include "chrome/browser/extensions/extension_webrequest_api.h" |
| 12 #include "chrome/browser/extensions/extension_webrequest_api_constants.h" | 12 #include "chrome/browser/extensions/extension_webrequest_api_constants.h" |
| 13 #include "chrome/browser/net/chrome_network_delegate.h" | 13 #include "chrome/browser/net/chrome_network_delegate.h" |
| 14 #include "chrome/browser/prefs/pref_member.h" | 14 #include "chrome/browser/prefs/pref_member.h" |
| 15 #include "chrome/common/extensions/extension_messages.h" | 15 #include "chrome/common/extensions/extension_messages.h" |
| 16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "chrome/test/base/testing_browser_process.h" |
| 18 #include "chrome/test/base/testing_browser_process_test.h" |
| 17 #include "chrome/test/base/testing_pref_service.h" | 19 #include "chrome/test/base/testing_pref_service.h" |
| 18 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
| 19 #include "chrome/test/testing_browser_process.h" | |
| 20 #include "chrome/test/testing_browser_process_test.h" | |
| 21 #include "content/common/json_value_serializer.h" | 21 #include "content/common/json_value_serializer.h" |
| 22 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
| 23 #include "net/url_request/url_request_test_util.h" | 23 #include "net/url_request/url_request_test_util.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 25 |
| 26 namespace keys = extension_webrequest_api_constants; | 26 namespace keys = extension_webrequest_api_constants; |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 static void EventHandledOnIOThread( | 29 static void EventHandledOnIOThread( |
| 30 void* profile, | 30 void* profile, |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 {"header2", "bar"} } | 645 {"header2", "bar"} } |
| 646 }, | 646 }, |
| 647 }; | 647 }; |
| 648 | 648 |
| 649 INSTANTIATE_TEST_CASE_P( | 649 INSTANTIATE_TEST_CASE_P( |
| 650 ExtensionWebRequest, | 650 ExtensionWebRequest, |
| 651 ExtensionWebRequestHeaderModificationTest, | 651 ExtensionWebRequestHeaderModificationTest, |
| 652 ::testing::ValuesIn(kTests)); | 652 ::testing::ValuesIn(kTests)); |
| 653 | 653 |
| 654 } // namespace | 654 } // namespace |
| OLD | NEW |