summaryrefslogtreecommitdiffstats
path: root/chrome/test/test_tab_contents.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-14 15:51:10 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-14 15:51:10 +0000
commitbe3877f74da87b5be2b549f733b5705c9607ec82 (patch)
treea00fa6c37daf0467801e2cbb06660b360a6d449e /chrome/test/test_tab_contents.h
parent57a020e92927a379ab514db5836cb4550e6e444b (diff)
downloadchromium_src-be3877f74da87b5be2b549f733b5705c9607ec82.zip
chromium_src-be3877f74da87b5be2b549f733b5705c9607ec82.tar.gz
chromium_src-be3877f74da87b5be2b549f733b5705c9607ec82.tar.bz2
Provides the infrastructure for Browser unit tests that create a
BrowserWindow with only a TabStrip. I also converted two ui tests over to unit tests to make sure it all worked. I had to add a bunch of null checks to Browser and a couple of other places. BUG=none TEST=none Review URL: http://codereview.chromium.org/17386 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/test_tab_contents.h')
-rw-r--r--chrome/test/test_tab_contents.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/test_tab_contents.h b/chrome/test/test_tab_contents.h
index 13b82e4..e8b56d4 100644
--- a/chrome/test/test_tab_contents.h
+++ b/chrome/test/test_tab_contents.h
@@ -97,6 +97,10 @@ class TestTabContentsFactory : public TabContentsFactory {
const std::string& scheme() const { return scheme_; }
+ GURL test_url_with_path(const std::string& path) const {
+ return GURL(scheme() + ":" + path);
+ }
+
TabContentsType type() const { return type_; }
private: