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

Side by Side Diff: chrome/browser/extensions/api/inline_install_private/inline_install_private_apitest.cc

Issue 2506713002: Avoid parsing the webstore base url so much. (Closed)
Patch Set: fix chromeos Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/extensions/api/inline_install_private/inline_install_pr ivate_api.h" 6 #include "chrome/browser/extensions/api/inline_install_private/inline_install_pr ivate_api.h"
7 #include "chrome/browser/extensions/extension_install_prompt.h" 7 #include "chrome/browser/extensions/extension_install_prompt.h"
8 #include "chrome/browser/extensions/webstore_installer_test.h" 8 #include "chrome/browser/extensions/webstore_installer_test.h"
9 #include "extensions/test/extension_test_message_listener.h" 9 #include "extensions/test/extension_test_message_listener.h"
10 10
(...skipping 22 matching lines...) Expand all
33 ready_listener.Reply(testName); 33 ready_listener.Reply(testName);
34 ASSERT_TRUE(success_listener.WaitUntilSatisfied()); 34 ASSERT_TRUE(success_listener.WaitUntilSatisfied());
35 } 35 }
36 }; 36 };
37 37
38 class InlineInstallPrivateApiTestApp : 38 class InlineInstallPrivateApiTestApp :
39 public InlineInstallPrivateApiTestBase { 39 public InlineInstallPrivateApiTestBase {
40 public: 40 public:
41 InlineInstallPrivateApiTestApp() : 41 InlineInstallPrivateApiTestApp() :
42 InlineInstallPrivateApiTestBase( 42 InlineInstallPrivateApiTestBase(
43 "extensions/api_test/inline_install_private/", 43 "extensions/api_test/inline_install_private",
44 "app.crx") {} 44 "app.crx") {}
45 }; 45 };
46 46
47 IN_PROC_BROWSER_TEST_F(InlineInstallPrivateApiTestApp, SuccessfulInstall) { 47 IN_PROC_BROWSER_TEST_F(InlineInstallPrivateApiTestApp, SuccessfulInstall) {
48 ExtensionFunction::ScopedUserGestureForTests gesture; 48 ExtensionFunction::ScopedUserGestureForTests gesture;
49 Run("successfulInstall"); 49 Run("successfulInstall");
50 } 50 }
51 51
52 IN_PROC_BROWSER_TEST_F(InlineInstallPrivateApiTestApp, BackgroundInstall) { 52 IN_PROC_BROWSER_TEST_F(InlineInstallPrivateApiTestApp, BackgroundInstall) {
53 ExtensionFunction::ScopedUserGestureForTests gesture; 53 ExtensionFunction::ScopedUserGestureForTests gesture;
(...skipping 12 matching lines...) Expand all
66 "extensions/api_test/webstore_inline_install", 66 "extensions/api_test/webstore_inline_install",
67 "extension.crx") {} 67 "extension.crx") {}
68 }; 68 };
69 69
70 IN_PROC_BROWSER_TEST_F(InlineInstallPrivateApiTestExtension, OnlyApps) { 70 IN_PROC_BROWSER_TEST_F(InlineInstallPrivateApiTestExtension, OnlyApps) {
71 ExtensionFunction::ScopedUserGestureForTests gesture; 71 ExtensionFunction::ScopedUserGestureForTests gesture;
72 Run("onlyApps"); 72 Run("onlyApps");
73 } 73 }
74 74
75 } // namespace extensions 75 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_data.cc ('k') | chrome/browser/extensions/webstore_standalone_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698