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

Side by Side Diff: chrome/browser/extensions/api/runtime/runtime_apitest.cc

Issue 126163003: Rename setUninstallUrl to setUninstallURL throughout codebase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 "chrome/browser/apps/app_browsertest_util.h" 5 #include "chrome/browser/apps/app_browsertest_util.h"
6 #include "chrome/browser/extensions/api/runtime/runtime_api.h" 6 #include "chrome/browser/extensions/api/runtime/runtime_api.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/browser/extensions/extension_function_test_utils.h" 8 #include "chrome/browser/extensions/extension_function_test_utils.h"
9 #include "chrome/test/base/ui_test_utils.h" 9 #include "chrome/test/base/ui_test_utils.h"
10 #include "net/test/embedded_test_server/embedded_test_server.h" 10 #include "net/test/embedded_test_server/embedded_test_server.h"
11 11
12 // Tests the privileged components of chrome.runtime. 12 // Tests the privileged components of chrome.runtime.
13 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimePrivileged) { 13 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimePrivileged) {
14 ASSERT_TRUE(RunExtensionTest("runtime/privileged")) << message_; 14 ASSERT_TRUE(RunExtensionTest("runtime/privileged")) << message_;
15 } 15 }
16 16
17 // Tests the unprivileged components of chrome.runtime. 17 // Tests the unprivileged components of chrome.runtime.
18 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimeUnprivileged) { 18 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimeUnprivileged) {
19 ASSERT_TRUE(StartEmbeddedTestServer()); 19 ASSERT_TRUE(StartEmbeddedTestServer());
20 ASSERT_TRUE( 20 ASSERT_TRUE(
21 LoadExtension(test_data_dir_.AppendASCII("runtime/content_script"))); 21 LoadExtension(test_data_dir_.AppendASCII("runtime/content_script")));
22 22
23 // The content script runs on webpage.html. 23 // The content script runs on webpage.html.
24 ResultCatcher catcher; 24 ResultCatcher catcher;
25 ui_test_utils::NavigateToURL(browser(), 25 ui_test_utils::NavigateToURL(browser(),
26 embedded_test_server()->GetURL("/webpage.html")); 26 embedded_test_server()->GetURL("/webpage.html"));
27 EXPECT_TRUE(catcher.GetNextResult()) << message_; 27 EXPECT_TRUE(catcher.GetNextResult()) << message_;
28 } 28 }
29 29
30 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimeUninstallUrl) { 30 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimeUninstallURL) {
31 ASSERT_TRUE(LoadExtension( 31 ASSERT_TRUE(LoadExtension(
32 test_data_dir_.AppendASCII("runtime").AppendASCII("uninstall_url"). 32 test_data_dir_.AppendASCII("runtime").AppendASCII("uninstall_url").
33 AppendASCII("sets_uninstall_url"))); 33 AppendASCII("sets_uninstall_url")));
34 ASSERT_TRUE(RunExtensionTest("runtime/uninstall_url")) << message_; 34 ASSERT_TRUE(RunExtensionTest("runtime/uninstall_url")) << message_;
35 } 35 }
36 36
37 namespace extensions { 37 namespace extensions {
38 38
39 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimeGetPlatformInfo) { 39 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimeGetPlatformInfo) {
40 scoped_ptr<base::Value> result( 40 scoped_ptr<base::Value> result(
(...skipping 19 matching lines...) Expand all
60 } 60 }
61 61
62 // Tests chrome.runtime.getPackageDirectory with an extension. 62 // Tests chrome.runtime.getPackageDirectory with an extension.
63 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, 63 IN_PROC_BROWSER_TEST_F(ExtensionApiTest,
64 ChromeRuntimeGetPackageDirectoryEntryExtension) { 64 ChromeRuntimeGetPackageDirectoryEntryExtension) {
65 ASSERT_TRUE(RunExtensionTest("runtime/get_package_directory/extension")) 65 ASSERT_TRUE(RunExtensionTest("runtime/get_package_directory/extension"))
66 << message_; 66 << message_;
67 } 67 }
68 68
69 } // namespace extensions 69 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/runtime/runtime_api.cc ('k') | chrome/browser/extensions/extension_function_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698