diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-07 00:43:49 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-07 00:43:49 +0000 |
commit | 2c9bf9d7fc00e4d3a2b3655300156424127d4fc6 (patch) | |
tree | 7eaa0bbd608e9f5e4894b6a21139fc0fb08ae339 /chrome/test/in_process_browser_test.h | |
parent | 956bb3f6af144d6da6784311556244bf6bd4595e (diff) | |
download | chromium_src-2c9bf9d7fc00e4d3a2b3655300156424127d4fc6.zip chromium_src-2c9bf9d7fc00e4d3a2b3655300156424127d4fc6.tar.gz chromium_src-2c9bf9d7fc00e4d3a2b3655300156424127d4fc6.tar.bz2 |
Make user data dir deletion optional for InProcessBrowserTests.
Original patch by tejasshah@google.com
Original review: http://codereview.chromium.org/159896
TEST=any browser test or live sync test
TBR=nick
Review URL: http://codereview.chromium.org/164118
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/in_process_browser_test.h')
-rw-r--r-- | chrome/test/in_process_browser_test.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/in_process_browser_test.h b/chrome/test/in_process_browser_test.h index 11a2880..250c52e 100644 --- a/chrome/test/in_process_browser_test.h +++ b/chrome/test/in_process_browser_test.h @@ -52,6 +52,13 @@ class InProcessBrowserTest : public testing::Test { // Restores state configured in SetUp. virtual void TearDown(); + // This method can be overridden to set user data directory for test. + virtual void SetUpUserDataDirForTest() {} + + // This method is used to decide if user data dir + // needs to be deleted or not. + virtual bool ShouldDeleteProfile() { return true; } + protected: // Returns the browser created by CreateBrowser. Browser* browser() const { return browser_; } |