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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc

Issue 579033002: [Clean-up] Remove some dead code for handling Webstore sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore incorrectly deleted code Created 6 years, 3 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 <vector> 5 #include <vector>
6 6
7 #include "base/callback_list.h"
8 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
12 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/extensions/api/identity/identity_api.h"
15 #include "chrome/browser/extensions/api/management/management_api.h" 12 #include "chrome/browser/extensions/api/management/management_api.h"
16 #include "chrome/browser/extensions/api/webstore_private/webstore_private_api.h" 13 #include "chrome/browser/extensions/api/webstore_private/webstore_private_api.h"
17 #include "chrome/browser/extensions/extension_apitest.h" 14 #include "chrome/browser/extensions/extension_apitest.h"
18 #include "chrome/browser/extensions/extension_function_test_utils.h" 15 #include "chrome/browser/extensions/extension_function_test_utils.h"
19 #include "chrome/browser/extensions/extension_install_prompt.h" 16 #include "chrome/browser/extensions/extension_install_prompt.h"
20 #include "chrome/browser/extensions/extension_install_ui.h" 17 #include "chrome/browser/extensions/extension_install_ui.h"
21 #include "chrome/browser/extensions/extension_service.h" 18 #include "chrome/browser/extensions/extension_service.h"
22 #include "chrome/browser/extensions/webstore_installer.h" 19 #include "chrome/browser/extensions/webstore_installer.h"
23 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
24 #include "chrome/browser/ui/browser.h" 21 #include "chrome/browser/ui/browser.h"
25 #include "chrome/browser/ui/tabs/tab_strip_model.h" 22 #include "chrome/browser/ui/tabs/tab_strip_model.h"
26 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
27 #include "chrome/test/base/ui_test_utils.h" 24 #include "chrome/test/base/ui_test_utils.h"
28 #include "components/keyed_service/content/browser_context_dependency_manager.h"
29 #include "content/public/browser/gpu_data_manager.h" 25 #include "content/public/browser/gpu_data_manager.h"
30 #include "content/public/browser/notification_observer.h" 26 #include "content/public/browser/notification_observer.h"
31 #include "content/public/browser/notification_registrar.h" 27 #include "content/public/browser/notification_registrar.h"
32 #include "content/public/test/browser_test_utils.h" 28 #include "content/public/test/browser_test_utils.h"
33 #include "extensions/browser/extension_system.h" 29 #include "extensions/browser/extension_system.h"
34 #include "gpu/config/gpu_feature_type.h" 30 #include "gpu/config/gpu_feature_type.h"
35 #include "gpu/config/gpu_info.h" 31 #include "gpu/config/gpu_info.h"
36 #include "net/dns/mock_host_resolver.h" 32 #include "net/dns/mock_host_resolver.h"
37 #include "ui/gl/gl_switches.h" 33 #include "ui/gl/gl_switches.h"
38 34
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 } 424 }
429 425
430 // Run tests when the --enable-ephemeral-apps switch is enabled. 426 // Run tests when the --enable-ephemeral-apps switch is enabled.
431 IN_PROC_BROWSER_TEST_F(EphemeralAppWebstorePrivateApiTest, LaunchEphemeralApp) { 427 IN_PROC_BROWSER_TEST_F(EphemeralAppWebstorePrivateApiTest, LaunchEphemeralApp) {
432 CommandLine::ForCurrentProcess()->AppendSwitch( 428 CommandLine::ForCurrentProcess()->AppendSwitch(
433 switches::kEnableEphemeralApps); 429 switches::kEnableEphemeralApps);
434 ASSERT_TRUE(RunInstallTest("webstore_launch_app.html", "app.crx")); 430 ASSERT_TRUE(RunInstallTest("webstore_launch_app.html", "app.crx"));
435 } 431 }
436 432
437 } // namespace extensions 433 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/webstore_private/webstore_private_api.cc ('k') | chrome/browser/signin/fake_signin_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698