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 "base/json/json_file_value_serializer.h" | 5 #include "base/json/json_file_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 "chrome/common/extensions/extension_manifest_constants.h" | 11 #include "chrome/common/extensions/extension_manifest_constants.h" |
12 #include "content/test/test_browser_thread.h" | 12 #include "content/public/test/test_browser_thread.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
16 | 16 |
17 using content::BrowserThread; | 17 using content::BrowserThread; |
18 using extensions::Extension; | 18 using extensions::Extension; |
19 using WebKit::WebSecurityOrigin; | 19 using WebKit::WebSecurityOrigin; |
20 using WebKit::WebString; | 20 using WebKit::WebString; |
21 | 21 |
22 namespace keys = extension_manifest_keys; | 22 namespace keys = extension_manifest_keys; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 EXPECT_FALSE(match); | 172 EXPECT_FALSE(match); |
173 | 173 |
174 // Sandboxed origins should not have any permissions. | 174 // Sandboxed origins should not have any permissions. |
175 match = info_map->extensions().GetExtensionOrAppByURL(ExtensionURLInfo( | 175 match = info_map->extensions().GetExtensionOrAppByURL(ExtensionURLInfo( |
176 WebSecurityOrigin::createFromString(WebString::fromUTF8("null")), | 176 WebSecurityOrigin::createFromString(WebString::fromUTF8("null")), |
177 app_url)); | 177 app_url)); |
178 EXPECT_FALSE(match); | 178 EXPECT_FALSE(match); |
179 } | 179 } |
180 | 180 |
181 } // namespace | 181 } // namespace |
OLD | NEW |