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/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h" | 8 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h" |
9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
11 #include "extensions/common/constants.h" | 11 #include "extensions/common/constants.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 EXPECT_TRUE(Match( | 155 EXPECT_TRUE(Match( |
156 kOrigin2, kUnprotected | kProtected | kExtension, mock_policy.get())); | 156 kOrigin2, kUnprotected | kProtected | kExtension, mock_policy.get())); |
157 EXPECT_TRUE(Match( | 157 EXPECT_TRUE(Match( |
158 kOriginExt, kUnprotected | kProtected | kExtension, mock_policy.get())); | 158 kOriginExt, kUnprotected | kProtected | kExtension, mock_policy.get())); |
159 EXPECT_FALSE(Match(kOriginDevTools, | 159 EXPECT_FALSE(Match(kOriginDevTools, |
160 kUnprotected | kProtected | kExtension, | 160 kUnprotected | kProtected | kExtension, |
161 mock_policy.get())); | 161 mock_policy.get())); |
162 } | 162 } |
163 | 163 |
164 } // namespace | 164 } // namespace |
OLD | NEW |