| OLD | NEW |
| 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 "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit
ion_attribute.h" | 5 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit
ion_attribute.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit
ion.h" | 12 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit
ion.h" |
| 13 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_consta
nts.h" | 13 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_consta
nts.h" |
| 14 #include "content/public/browser/resource_request_info.h" | 14 #include "content/public/browser/resource_request_info.h" |
| 15 #include "net/test/spawned_test_server.h" | 15 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 16 #include "net/url_request/url_request_test_util.h" | 16 #include "net/url_request/url_request_test_util.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 using base::DictionaryValue; | 19 using base::DictionaryValue; |
| 20 using base::FundamentalValue; | 20 using base::FundamentalValue; |
| 21 using base::ListValue; | 21 using base::ListValue; |
| 22 using base::StringValue; | 22 using base::StringValue; |
| 23 using base::Value; | 23 using base::Value; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 keys::kValueEqualsKey, "valueB" | 651 keys::kValueEqualsKey, "valueB" |
| 652 }; | 652 }; |
| 653 const size_t kExistingSize[] = { arraysize(kExisting) }; | 653 const size_t kExistingSize[] = { arraysize(kExisting) }; |
| 654 GetArrayAsVector(kExisting, kExistingSize, 1u, &tests); | 654 GetArrayAsVector(kExisting, kExistingSize, 1u, &tests); |
| 655 MatchAndCheck( | 655 MatchAndCheck( |
| 656 tests, keys::kExcludeResponseHeadersKey, stage, &url_request, &result); | 656 tests, keys::kExcludeResponseHeadersKey, stage, &url_request, &result); |
| 657 EXPECT_FALSE(result); | 657 EXPECT_FALSE(result); |
| 658 } | 658 } |
| 659 | 659 |
| 660 } // namespace extensions | 660 } // namespace extensions |
| OLD | NEW |