OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 bool WaitForPageActionVisibilityChangeTo(int count); | 49 bool WaitForPageActionVisibilityChangeTo(int count); |
50 | 50 |
51 // NotificationObserver | 51 // NotificationObserver |
52 virtual void Observe(NotificationType type, | 52 virtual void Observe(NotificationType type, |
53 const NotificationSource& source, | 53 const NotificationSource& source, |
54 const NotificationDetails& details); | 54 const NotificationDetails& details); |
55 | 55 |
56 bool loaded_; | 56 bool loaded_; |
57 bool installed_; | 57 bool installed_; |
58 FilePath test_data_dir_; | 58 FilePath test_data_dir_; |
| 59 std::string last_loaded_extension_id_; |
59 | 60 |
60 private: | 61 private: |
61 bool InstallOrUpdateExtension(const std::string& id, const FilePath& path, | 62 bool InstallOrUpdateExtension(const std::string& id, const FilePath& path, |
62 int expected_change); | 63 int expected_change); |
63 | 64 |
64 bool WaitForExtensionHostsToLoad(); | 65 bool WaitForExtensionHostsToLoad(); |
65 }; | 66 }; |
66 | 67 |
67 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 68 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |