diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 16:56:44 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 16:56:44 +0000 |
commit | b4fb20b99a2e2081dc9cffd6370079d57592dab2 (patch) | |
tree | bd68011c71ff72b6b02053ee5f303a95ef624bcd /chrome/test | |
parent | df9b432c0fed1bd09daa40e3b219489dd0945bfc (diff) | |
download | chromium_src-b4fb20b99a2e2081dc9cffd6370079d57592dab2.zip chromium_src-b4fb20b99a2e2081dc9cffd6370079d57592dab2.tar.gz chromium_src-b4fb20b99a2e2081dc9cffd6370079d57592dab2.tar.bz2 |
Assert that page_cycler data is present when trying to run tests, so that when it isn't the failure is obvious and easy-to-diagnose.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/119447
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18169 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/page_cycler/page_cycler_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc index 9dd89221..9d2f01e 100644 --- a/chrome/test/page_cycler/page_cycler_test.cc +++ b/chrome/test/page_cycler/page_cycler_test.cc @@ -5,6 +5,7 @@ #include "base/basictypes.h" #include "base/command_line.h" #include "base/file_path.h" +#include "base/file_util.h" #include "base/path_service.h" #include "base/process_util.h" #include "base/string_util.h" @@ -56,6 +57,7 @@ class PageCyclerTest : public UITest { test_path = test_path.Append(FILE_PATH_LITERAL("page_cycler")); test_path = test_path.AppendASCII(name); test_path = test_path.Append(FILE_PATH_LITERAL("start.html")); + ASSERT_TRUE(file_util::PathExists(test_path)) << "Missing test data"; test_url = net::FilePathToFileURL(test_path); } |