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

Side by Side Diff: chrome/browser/extensions/extension_apitest.h

Issue 174277: override chrome:// URLs via extensions. (Closed)
Patch Set: fix linux errors Created 11 years, 3 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/browser_url_handler.cc ('k') | chrome/browser/extensions/extension_apitest.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) 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/browser_url_handler.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698