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

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

Issue 23874006: Add a function to send scripts from a browsertest to an extension's background page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698