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

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

Issue 16109004: Update refernces to Blink's Platform API (chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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 | Annotate | Revision Log
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/public/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/Platform/chromium/public/WebString.h" 14 #include "third_party/WebKit/public/platform/WebString.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" 15 #include "third_party/WebKit/public/platform/WebURL.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 using extensions::APIPermission; 18 using extensions::APIPermission;
19 using extensions::Extension; 19 using extensions::Extension;
20 using extensions::Manifest; 20 using extensions::Manifest;
21 using WebKit::WebSecurityOrigin; 21 using WebKit::WebSecurityOrigin;
22 using WebKit::WebString; 22 using WebKit::WebString;
23 23
24 namespace keys = extension_manifest_keys; 24 namespace keys = extension_manifest_keys;
25 25
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 EXPECT_FALSE(match); 175 EXPECT_FALSE(match);
176 176
177 // Sandboxed origins should not have any permissions. 177 // Sandboxed origins should not have any permissions.
178 match = info_map->extensions().GetExtensionOrAppByURL(ExtensionURLInfo( 178 match = info_map->extensions().GetExtensionOrAppByURL(ExtensionURLInfo(
179 WebSecurityOrigin::createFromString(WebString::fromUTF8("null")), 179 WebSecurityOrigin::createFromString(WebString::fromUTF8("null")),
180 app_url)); 180 app_url));
181 EXPECT_FALSE(match); 181 EXPECT_FALSE(match);
182 } 182 }
183 183
184 } // namespace 184 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698