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

Unified Diff: chrome/browser/extensions/api/management/management_api_browsertest.cc

Issue 11747025: Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: restore missing registrations Created 7 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/management/management_api_browsertest.cc
diff --git a/chrome/browser/extensions/api/management/management_api_browsertest.cc b/chrome/browser/extensions/api/management/management_api_browsertest.cc
index 1f129f96ce4bba2d77af5c2bee42dd3ae5348d13..99115fc88e3e6ea1a05ba62c169f4ae6fc5c7828 100644
--- a/chrome/browser/extensions/api/management/management_api_browsertest.cc
+++ b/chrome/browser/extensions/api/management/management_api_browsertest.cc
@@ -104,8 +104,9 @@ IN_PROC_BROWSER_TEST_F(ExtensionManagementApiBrowserTest,
const std::string id = extension->id();
// Uninstall, then cancel via the confirm dialog.
- scoped_refptr<UninstallFunction> uninstall_function(new UninstallFunction());
- UninstallFunction::SetAutoConfirmForTest(false);
+ scoped_refptr<ManagementUninstallFunction> uninstall_function(
+ new ManagementUninstallFunction());
+ ManagementUninstallFunction::SetAutoConfirmForTest(false);
EXPECT_TRUE(MatchPattern(
util::RunFunctionAndReturnError(
@@ -119,8 +120,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionManagementApiBrowserTest,
EXPECT_TRUE(service->GetExtensionById(id, false) != NULL);
// Uninstall, then accept via the confirm dialog.
- uninstall_function = new UninstallFunction();
- UninstallFunction::SetAutoConfirmForTest(true);
+ uninstall_function = new ManagementUninstallFunction();
+ ManagementUninstallFunction::SetAutoConfirmForTest(true);
util::RunFunctionAndReturnSingleResult(
uninstall_function,
@@ -142,8 +143,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionManagementApiBrowserTest,
ASSERT_TRUE(listener.WaitUntilSatisfied());
// The management API should list this extension.
- scoped_refptr<GetAllExtensionsFunction> function =
- new GetAllExtensionsFunction();
+ scoped_refptr<ManagementGetAllFunction> function =
+ new ManagementGetAllFunction();
scoped_ptr<base::Value> result(util::RunFunctionAndReturnSingleResult(
function.get(), "[]", browser()));
base::ListValue* list;
@@ -153,7 +154,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionManagementApiBrowserTest,
// And it should continue to do so even after it crashes.
ASSERT_TRUE(CrashEnabledExtension(extension->id()));
- function = new GetAllExtensionsFunction();
+ function = new ManagementGetAllFunction();
result.reset(util::RunFunctionAndReturnSingleResult(
function.get(), "[]", browser()));
ASSERT_TRUE(result->GetAsList(&list));
@@ -198,7 +199,8 @@ class ExtensionManagementApiEscalationTest :
void SetEnabled(bool enabled, bool user_gesture,
const std::string& expected_error) {
- scoped_refptr<SetEnabledFunction> function(new SetEnabledFunction);
+ scoped_refptr<ManagementSetEnabledFunction> function(
+ new ManagementSetEnabledFunction);
const char* enabled_string = enabled ? "true" : "false";
if (user_gesture)
function->set_user_gesture(true);
@@ -225,8 +227,8 @@ const char ExtensionManagementApiEscalationTest::kId[] =
IN_PROC_BROWSER_TEST_F(ExtensionManagementApiEscalationTest,
DisabledReason) {
- scoped_refptr<GetExtensionByIdFunction> function =
- new GetExtensionByIdFunction();
+ scoped_refptr<ManagementGetFunction> function =
+ new ManagementGetFunction();
scoped_ptr<base::Value> result(util::RunFunctionAndReturnSingleResult(
function.get(),
base::StringPrintf("[\"%s\"]", kId),

Powered by Google App Engine
This is Rietveld 408576698