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_APITEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/extension_browsertest.h" | 8 #include "chrome/browser/extensions/extension_browsertest.h" |
9 #include "chrome/common/notification_service.h" | 9 #include "chrome/common/notification_service.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 // Reset |completed_| and wait for a new pass / fail notification. | 26 // Reset |completed_| and wait for a new pass / fail notification. |
27 bool WaitForPassFail(); | 27 bool WaitForPassFail(); |
28 | 28 |
29 // All extensions tested by ExtensionApiTest are in the "api_test" dir. | 29 // All extensions tested by ExtensionApiTest are in the "api_test" dir. |
30 virtual void SetUpCommandLine(CommandLine* command_line); | 30 virtual void SetUpCommandLine(CommandLine* command_line); |
31 | 31 |
32 // NotificationObserver | 32 // NotificationObserver |
33 void Observe(NotificationType type, const NotificationSource& source, | 33 void Observe(NotificationType type, const NotificationSource& source, |
34 const NotificationDetails& details); | 34 const NotificationDetails& details); |
35 | 35 |
36 // Did the extension side of the unit test complete? | 36 // A sequential list of pass/fail notifications from the test extension(s). |
37 bool completed_; | 37 std::deque<bool> results_; |
38 | |
39 // Did the extension side of the unit test pass? | |
40 bool passed_; | |
41 | 38 |
42 // If it failed, what was the error message? | 39 // If it failed, what was the error message? |
| 40 std::deque<std::string> messages_; |
43 std::string message_; | 41 std::string message_; |
44 }; | 42 }; |
45 | 43 |
46 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
OLD | NEW |