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/browsing_data/browsing_data_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/strings/stringprintf.h" | |
9 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
10 #include "extensions/common/constants.h" | 9 #include "extensions/common/constants.h" |
11 #include "extensions/features/features.h" | 10 #include "extensions/features/features.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "url/gurl.h" | 12 #include "url/gurl.h" |
14 #include "url/url_constants.h" | 13 #include "url/url_constants.h" |
15 | 14 |
16 #if BUILDFLAG(ENABLE_EXTENSIONS) | 15 #if BUILDFLAG(ENABLE_EXTENSIONS) |
17 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h" | 16 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h" |
18 #endif | 17 #endif |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 EXPECT_TRUE(Match(kOriginExt, kExtension, nullptr)); | 165 EXPECT_TRUE(Match(kOriginExt, kExtension, nullptr)); |
167 EXPECT_FALSE(Match(kOriginExt, kUnprotected, nullptr)); | 166 EXPECT_FALSE(Match(kOriginExt, kUnprotected, nullptr)); |
168 EXPECT_FALSE(Match(kOriginExt, kProtected, nullptr)); | 167 EXPECT_FALSE(Match(kOriginExt, kProtected, nullptr)); |
169 | 168 |
170 EXPECT_FALSE(Match(kOriginDevTools, kExtension, nullptr)); | 169 EXPECT_FALSE(Match(kOriginDevTools, kExtension, nullptr)); |
171 EXPECT_FALSE(Match(kOriginDevTools, kUnprotected, nullptr)); | 170 EXPECT_FALSE(Match(kOriginDevTools, kUnprotected, nullptr)); |
172 EXPECT_FALSE(Match(kOriginDevTools, kProtected, nullptr)); | 171 EXPECT_FALSE(Match(kOriginDevTools, kProtected, nullptr)); |
173 } | 172 } |
174 | 173 |
175 } // namespace | 174 } // namespace |
OLD | NEW |