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

Unified Diff: content/test/content_browser_test.h

Issue 10803026: Get content_browsertest working. I've added a simple test for now, and will convert the tests in sr… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get it working on mac + linux, fix unittests crash, and fix unittest link error and add missing dep… Created 8 years, 5 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
« no previous file with comments | « content/test/browser_test_utils.cc ('k') | content/test/content_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_browser_test.h
===================================================================
--- content/test/content_browser_test.h (revision 147044)
+++ content/test/content_browser_test.h (working copy)
@@ -6,10 +6,15 @@
#define CONTENT_TEST_CONTENT_BROWSER_TEST_H_
#include "base/memory/scoped_ptr.h"
+#include "content/public/test/browser_test.h"
#include "content/test/browser_test_base.h"
class ShellMainDelegate;
+namespace content {
+class Shell;
+}
+
class ContentBrowserTest : public BrowserTestBase {
protected:
ContentBrowserTest();
@@ -22,8 +27,13 @@
// BrowserTestBase:
virtual void RunTestOnMainThreadLoop() OVERRIDE;
+ // Returns the window for the test.
+ content::Shell* shell() const { return shell_; }
+
private:
scoped_ptr<ShellMainDelegate> shell_main_delegate_;
+
+ content::Shell* shell_;
};
#endif // CONTENT_TEST_CONTENT_BROWSER_TEST_H_
« no previous file with comments | « content/test/browser_test_utils.cc ('k') | content/test/content_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698