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

Side by Side Diff: chrome/browser/extensions/api/management/management_api_browsertest.cc

Issue 10750010: Add an installType property to the management API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added location param to InstallExtension, rewrote test Created 8 years, 4 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/scoped_temp_dir.h" 7 #include "base/scoped_temp_dir.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "chrome/browser/extensions/api/management/management_api.h"
11 #include "chrome/browser/extensions/api/management/management_api_constants.h"
10 #include "chrome/browser/extensions/extension_browsertest.h" 12 #include "chrome/browser/extensions/extension_browsertest.h"
11 #include "chrome/browser/extensions/extension_function_test_utils.h" 13 #include "chrome/browser/extensions/extension_function_test_utils.h"
12 #include "chrome/browser/extensions/extension_install_dialog.h" 14 #include "chrome/browser/extensions/extension_install_dialog.h"
13 #include "chrome/browser/extensions/extension_management_api.h"
14 #include "chrome/browser/extensions/extension_management_api_constants.h"
15 #include "chrome/browser/extensions/extension_service.h" 15 #include "chrome/browser/extensions/extension_service.h"
16 #include "chrome/browser/extensions/extension_test_message_listener.h" 16 #include "chrome/browser/extensions/extension_test_message_listener.h"
17 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
19 #include "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 21
22 namespace keys = extension_management_api_constants; 22 namespace keys = extension_management_api_constants;
23 namespace util = extension_function_test_utils; 23 namespace util = extension_function_test_utils;
24 24
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Expect an error that user cancelled the dialog. 191 // Expect an error that user cancelled the dialog.
192 CommandLine::ForCurrentProcess()->AppendSwitchASCII( 192 CommandLine::ForCurrentProcess()->AppendSwitchASCII(
193 switches::kAppsGalleryInstallAutoConfirmForTests, "cancel"); 193 switches::kAppsGalleryInstallAutoConfirmForTests, "cancel");
194 ReEnable(true, keys::kUserDidNotReEnableError); 194 ReEnable(true, keys::kUserDidNotReEnableError);
195 195
196 // This should succeed when user accepts dialog. 196 // This should succeed when user accepts dialog.
197 CommandLine::ForCurrentProcess()->AppendSwitchASCII( 197 CommandLine::ForCurrentProcess()->AppendSwitchASCII(
198 switches::kAppsGalleryInstallAutoConfirmForTests, "accept"); 198 switches::kAppsGalleryInstallAutoConfirmForTests, "accept");
199 ReEnable(true, ""); 199 ReEnable(true, "");
200 } 200 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698