OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |