diff options
author | ace@google.com <ace@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-30 00:36:15 +0000 |
---|---|---|
committer | ace@google.com <ace@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-30 00:36:15 +0000 |
commit | 8bf2fe3abd6996ee1c03fbb02775b7a5f7328e7c (patch) | |
tree | cda689528a47d6adb94eee29291f51b7dce2b905 /chrome/test/reliability | |
parent | a3929294e9176abc6085d87cb2c6f8f8417b58f3 (diff) | |
download | chromium_src-8bf2fe3abd6996ee1c03fbb02775b7a5f7328e7c.zip chromium_src-8bf2fe3abd6996ee1c03fbb02775b7a5f7328e7c.tar.gz chromium_src-8bf2fe3abd6996ee1c03fbb02775b7a5f7328e7c.tar.bz2 |
Adding version information about local chrome dll to url and test logs, so that chromebot can verify the revision of the build under test.
This change is coupled with chromebot change 12096852.
Review URL: http://codereview.chromium.org/160280
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/reliability')
-rw-r--r-- | chrome/test/reliability/page_load_test.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/test/reliability/page_load_test.cc b/chrome/test/reliability/page_load_test.cc index 4a7b951..bee0a72 100644 --- a/chrome/test/reliability/page_load_test.cc +++ b/chrome/test/reliability/page_load_test.cc @@ -39,6 +39,7 @@ #include "base/command_line.h" #include "base/file_path.h" #include "base/file_util.h" +#include "base/file_version_info.h" #include "base/path_service.h" #include "base/string_util.h" #include "base/time.h" @@ -87,6 +88,9 @@ const wchar_t crash_url[] = L"about:crash"; const wchar_t kV8LogFileSwitch[] = L"logfile"; const wchar_t kV8LogFileDefaultName[] = L"v8.log"; +// String name of local chrome dll for looking up file information. +std::wstring kChromeDll = L"chrome.dll"; + bool append_page_id = false; int32 start_page; int32 end_page; @@ -146,6 +150,13 @@ class PageLoadTest : public UITest { test_log_path = L"test_log.log"; test_log.open(test_log_path.c_str()); + // Check file version info for chrome dll. + FileVersionInfo* file_info; + file_info = FileVersionInfo::CreateFileVersionInfo(kChromeDll); + std::wstring last_change = file_info->last_change(); + test_log << "Last Change: "; + test_log << last_change << std::endl; + // Log timestamp for test start. base::Time time_now = base::Time::Now(); double time_start = time_now.ToDoubleT(); @@ -281,6 +292,9 @@ class PageLoadTest : public UITest { if (log_file.is_open() && save_debug_log && !continuous_load) SaveDebugLogs(log_file); + + // Log revision information for Chrome build under test. + log_file << " " << "revision=" << last_change; // Get crash dumps. LogOrDeleteNewCrashDumps(log_file, &metrics); |