OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_UTIL_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_UTIL_H_ | |
not at google - send to devlin
2013/09/03 23:13:38
just browsertest_util?
Jeffrey Yasskin
2013/09/03 23:33:13
Sure, done.
| |
7 | |
8 #include <string> | |
9 | |
10 class Profile; | |
11 | |
12 namespace extensions { | |
13 | |
not at google - send to devlin
2013/09/03 23:13:38
can we put this file in a browsertest_util namespa
Jeffrey Yasskin
2013/09/03 23:33:13
After some discussion about a 'testing' namespace
| |
14 // Waits until |script| calls "window.domAutomationController.send('string')" | |
not at google - send to devlin
2013/09/03 23:13:38
what is 'string'?
Jeffrey Yasskin
2013/09/03 23:33:13
How's the new comment?
| |
15 // and returns the string. Fails the test and returns an empty string if | |
16 // |extension_id| isn't installed in |profile| or doesn't have a background | |
17 // page, or if executing the script fails. | |
18 std::string ExecuteScriptInBackgroundPage(Profile* profile, | |
19 const std::string& extension_id, | |
20 const std::string& script); | |
21 | |
22 } // namespace extensions | |
23 | |
24 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_UTIL_H_ | |
OLD | NEW |