summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-11 19:05:18 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-11 19:05:18 +0000
commitd87ac292af29d4a4a559851fc10b2bf61e3ce27e (patch)
tree016e299606afbec382f525fa5a297e600d02f92f /chrome
parentcaf063dadaa09071f109b06d9687e891ca6ac673 (diff)
downloadchromium_src-d87ac292af29d4a4a559851fc10b2bf61e3ce27e.zip
chromium_src-d87ac292af29d4a4a559851fc10b2bf61e3ce27e.tar.gz
chromium_src-d87ac292af29d4a4a559851fc10b2bf61e3ce27e.tar.bz2
ui_tests: log timings of individual AppCache UI tests.
This will help break down why it is slow. BUG=54717 Review URL: http://codereview.chromium.org/3667003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62166 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/test/ui/ui_layout_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/ui/ui_layout_test.cc b/chrome/test/ui/ui_layout_test.cc
index 548d9cd..c80b992 100644
--- a/chrome/test/ui/ui_layout_test.cc
+++ b/chrome/test/ui/ui_layout_test.cc
@@ -175,6 +175,7 @@ static size_t FindInsertPosition(const std::string& html) {
void UILayoutTest::RunLayoutTest(const std::string& test_case_file_name,
int port) {
+ base::Time start = base::Time::Now();
SCOPED_TRACE(test_case_file_name.c_str());
ASSERT_TRUE(!layout_test_controller_.empty());
@@ -253,6 +254,9 @@ void UILayoutTest::RunLayoutTest(const std::string& test_case_file_name,
// Compares the results.
EXPECT_STREQ(expected_result_value.c_str(), value.c_str());
+
+ LOG(INFO) << "Test " << test_case_file_name << " took "
+ << (base::Time::Now() - start).InMilliseconds() << "ms";
}
bool UILayoutTest::ReadExpectedResult(const FilePath& result_dir_path,