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

Unified Diff: content/public/test/browser_test_utils.h

Issue 10875045: Rewrite the cookies pyauto test as browser tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/browser_test_utils.h
===================================================================
--- content/public/test/browser_test_utils.h (revision 153070)
+++ content/public/test/browser_test_utils.h (working copy)
@@ -42,6 +42,7 @@
namespace content {
+class BrowserContext;
class MessageLoopRunner;
class RenderViewHost;
class WebContents;
@@ -100,6 +101,9 @@
const std::wstring& script,
std::string* result) WARN_UNUSED_RESULT;
+// Returns the cookies for the given url. Runs a nested message loop.
+std::string GetCookies(BrowserContext* browser_context, const GURL& url);
+
// Watches title changes on a tab, blocking until an expected title is set.
class TitleWatcher : public NotificationObserver {
public:
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_browsertest.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698