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

Unified Diff: chrome/test/in_process_browser_test.h

Issue 3834002: Make all browser code use browser::Navigate to open tabs.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 | « chrome/test/browser_with_test_window_test.cc ('k') | chrome/test/in_process_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/in_process_browser_test.h
===================================================================
--- chrome/test/in_process_browser_test.h (revision 64601)
+++ chrome/test/in_process_browser_test.h (working copy)
@@ -10,6 +10,7 @@
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
#include "base/scoped_temp_dir.h"
+#include "chrome/common/page_transition_types.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -67,6 +68,17 @@
// Returns the browser created by CreateBrowser.
Browser* browser() const { return browser_; }
+ // Convenience methods for adding tabs to a Browser.
+ void AddTabAtIndexToBrowser(Browser* browser,
+ int index,
+ const GURL& url,
+ PageTransition::Type transition);
+ void AddTabAtIndex(int index, const GURL& url,
+ PageTransition::Type transition);
+
+ // Adds a selected tab at |index| to |url| with the specified |transition|.
+ void AddTabAt(int index, const GURL& url, PageTransition::Type transition);
+
// Override this rather than TestBody.
virtual void RunTestOnMainThread() = 0;
« no previous file with comments | « chrome/test/browser_with_test_window_test.cc ('k') | chrome/test/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698