| 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 "extensions/browser/api/declarative_webrequest/webrequest_condition_att
ribute.h" | 5 #include "extensions/browser/api/declarative_webrequest/webrequest_condition_att
ribute.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "net/test/embedded_test_server/embedded_test_server.h" | 21 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 22 #include "net/url_request/url_request.h" | 22 #include "net/url_request/url_request.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 using base::DictionaryValue; | 26 using base::DictionaryValue; |
| 27 using base::FundamentalValue; | 27 using base::FundamentalValue; |
| 28 using base::ListValue; | 28 using base::ListValue; |
| 29 using base::StringValue; | 29 using base::StringValue; |
| 30 using base::Value; | 30 using base::Value; |
| 31 using content::ResourceType; | |
| 32 | 31 |
| 33 namespace extensions { | 32 namespace extensions { |
| 34 | 33 |
| 35 namespace keys = declarative_webrequest_constants; | 34 namespace keys = declarative_webrequest_constants; |
| 36 | 35 |
| 37 namespace { | 36 namespace { |
| 38 const char kUnknownConditionName[] = "unknownType"; | 37 const char kUnknownConditionName[] = "unknownType"; |
| 39 | 38 |
| 40 base::FilePath TestDataPath(base::StringPiece relative_to_src) { | 39 base::FilePath TestDataPath(base::StringPiece relative_to_src) { |
| 41 base::FilePath src_dir; | 40 base::FilePath src_dir; |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 }; | 713 }; |
| 715 const size_t kExistingSize[] = { arraysize(kExisting) }; | 714 const size_t kExistingSize[] = { arraysize(kExisting) }; |
| 716 GetArrayAsVector(kExisting, kExistingSize, 1u, &tests); | 715 GetArrayAsVector(kExisting, kExistingSize, 1u, &tests); |
| 717 MatchAndCheck(tests, keys::kExcludeResponseHeadersKey, stage, | 716 MatchAndCheck(tests, keys::kExcludeResponseHeadersKey, stage, |
| 718 url_request.get(), &result); | 717 url_request.get(), &result); |
| 719 EXPECT_FALSE(result); | 718 EXPECT_FALSE(result); |
| 720 } | 719 } |
| 721 | 720 |
| 722 } // namespace | 721 } // namespace |
| 723 } // namespace extensions | 722 } // namespace extensions |
| OLD | NEW |