From b4fb20b99a2e2081dc9cffd6370079d57592dab2 Mon Sep 17 00:00:00 2001 From: "stuartmorgan@chromium.org" Date: Thu, 11 Jun 2009 16:56:44 +0000 Subject: 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 --- chrome/test/page_cycler/page_cycler_test.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/test/page_cycler') 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); } -- cgit v1.1