Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Side by Side Diff: chrome/browser/extensions/extension_info_map_unittest.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/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 WebKit::WebSecurityOrigin; 19 using WebKit::WebSecurityOrigin;
19 using WebKit::WebString; 20 using WebKit::WebString;
20 21
21 namespace keys = extension_manifest_keys; 22 namespace keys = extension_manifest_keys;
22 23
23 namespace { 24 namespace {
24 25
25 class ExtensionInfoMapTest : public testing::Test { 26 class ExtensionInfoMapTest : public testing::Test {
26 public: 27 public:
27 ExtensionInfoMapTest() 28 ExtensionInfoMapTest()
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 EXPECT_FALSE(match); 172 EXPECT_FALSE(match);
172 173
173 // Sandboxed origins should not have any permissions. 174 // Sandboxed origins should not have any permissions.
174 match = info_map->extensions().GetExtensionOrAppByURL(ExtensionURLInfo( 175 match = info_map->extensions().GetExtensionOrAppByURL(ExtensionURLInfo(
175 WebSecurityOrigin::createFromString(WebString::fromUTF8("null")), 176 WebSecurityOrigin::createFromString(WebString::fromUTF8("null")),
176 app_url)); 177 app_url));
177 EXPECT_FALSE(match); 178 EXPECT_FALSE(match);
178 } 179 }
179 180
180 } // namespace 181 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_info_map.cc ('k') | chrome/browser/extensions/extension_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698