OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef EXTENSIONS_SHELL_TEST_SHELL_API_TEST_H_ | |
6 #define EXTENSIONS_SHELL_TEST_SHELL_API_TEST_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "extensions/shell/test/shell_test.h" | |
11 | |
12 namespace extensions { | |
13 | |
14 // Base class for app shell browser API tests that load an app/extension | |
15 // and wait for a success message from the chrome.test API. | |
16 class ShellApiTest : public AppShellTest { | |
17 public: | |
18 ShellApiTest(); | |
19 virtual ~ShellApiTest(); | |
20 | |
21 // Loads an unpacked platform app from a directory using |extension_system_| | |
James Cook
2014/09/03 18:08:41
maybe AppShellTest::extension_system_ since it isn
Yoyo Zhou
2014/09/04 21:57:42
Updated this.
| |
22 // and attempts to launch it. Returns true on success. | |
23 // |app_dir| is a subpath under extensions/test/data. | |
James Cook
2014/09/03 18:08:41
nit: wrap with line above
Yoyo Zhou
2014/09/04 21:57:42
Done.
| |
24 bool RunAppTest(const std::string& app_dir); | |
25 | |
26 protected: | |
27 // If it failed, what was the error message? | |
28 std::string message_; | |
29 | |
James Cook
2014/09/03 18:08:41
DISALLOW_COPY_AND_ASSIGN
Yoyo Zhou
2014/09/04 21:57:42
Done.
| |
30 }; | |
31 | |
32 } // namespace extensions | |
33 | |
34 #endif // EXTENSIONS_SHELL_TEST_SHELL_API_TEST_H_ | |
OLD | NEW |