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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_apitest.cc

Issue 12212174: Add flag in about:flags page to enable / disable apps-devtool. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 5 #include <map>
6 6
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 9
10 using extensions::Extension; 10 using extensions::Extension;
11 using extensions::Manifest; 11 using extensions::Manifest;
12 12
13 class DeveloperPrivateApiTest : public ExtensionApiTest { 13 class DeveloperPrivateApiTest : public ExtensionApiTest {
14 public: 14 public:
15 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 15 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
16 ExtensionApiTest::SetUpCommandLine(command_line); 16 ExtensionApiTest::SetUpCommandLine(command_line);
17 command_line->AppendSwitch(switches::kAppsDebugger); 17 command_line->AppendSwitch(switches::kAppsDevtool);
18 } 18 }
19 19
20 virtual void LoadExtensions() { 20 virtual void LoadExtensions() {
21 base::FilePath base_dir = test_data_dir_.AppendASCII("developer"); 21 base::FilePath base_dir = test_data_dir_.AppendASCII("developer");
22 LoadNamedExtension(base_dir, "hosted_app"); 22 LoadNamedExtension(base_dir, "hosted_app");
23 } 23 }
24 24
25 protected: 25 protected:
26 void LoadNamedExtension(const base::FilePath& path, 26 void LoadNamedExtension(const base::FilePath& path,
27 const std::string& name) { 27 const std::string& name) {
(...skipping 18 matching lines...) Expand all
46 LoadExtensions(); 46 LoadExtensions();
47 47
48 base::FilePath basedir = test_data_dir_.AppendASCII("developer"); 48 base::FilePath basedir = test_data_dir_.AppendASCII("developer");
49 InstallNamedExtension(basedir, "packaged_app", Manifest::INTERNAL); 49 InstallNamedExtension(basedir, "packaged_app", Manifest::INTERNAL);
50 50
51 InstallNamedExtension(basedir, "simple_extension", Manifest::INTERNAL); 51 InstallNamedExtension(basedir, "simple_extension", Manifest::INTERNAL);
52 52
53 ASSERT_TRUE(RunExtensionSubtest( 53 ASSERT_TRUE(RunExtensionSubtest(
54 "developer/test", "basics.html", kFlagLoadAsComponent)); 54 "developer/test", "basics.html", kFlagLoadAsComponent));
55 } 55 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698