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 "base/json/json_value_serializer.h" | 5 #include "base/json/json_value_serializer.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "chrome/browser/extensions/extension_info_map.h" | 8 #include "chrome/browser/extensions/extension_info_map.h" |
9 #include "chrome/common/chrome_paths.h" | 9 #include "chrome/common/chrome_paths.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
11 #include "content/test/test_browser_thread.h" | 11 #include "content/test/test_browser_thread.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
15 | 15 |
16 using content::BrowserThread; | 16 using content::BrowserThread; |
17 using WebKit::WebSecurityOrigin; | 17 using WebKit::WebSecurityOrigin; |
18 using WebKit::WebString; | 18 using WebKit::WebString; |
19 | 19 |
20 namespace keys = extension_manifest_keys; | 20 namespace keys = extension_manifest_keys; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class ExtensionInfoMapTest : public testing::Test { | 24 class ExtensionInfoMapTest : public testing::Test { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 EXPECT_FALSE(match); | 170 EXPECT_FALSE(match); |
171 | 171 |
172 // Sandboxed origins should not have any permissions. | 172 // Sandboxed origins should not have any permissions. |
173 match = info_map->extensions().GetByURL(ExtensionURLInfo( | 173 match = info_map->extensions().GetByURL(ExtensionURLInfo( |
174 WebSecurityOrigin::createFromString(WebString::fromUTF8("null")), | 174 WebSecurityOrigin::createFromString(WebString::fromUTF8("null")), |
175 app_url)); | 175 app_url)); |
176 EXPECT_FALSE(match); | 176 EXPECT_FALSE(match); |
177 } | 177 } |
178 | 178 |
179 } // namespace | 179 } // namespace |
OLD | NEW |