summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/ui_test.h
diff options
context:
space:
mode:
authorpamg@google.com <pamg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-18 23:32:34 +0000
committerpamg@google.com <pamg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-18 23:32:34 +0000
commitf7daade0fd1b9c4607c31de021ffbdaa877ff792 (patch)
tree09ca9bd88a554e5c67aaa868204b9e9ae5056dff /chrome/test/ui/ui_test.h
parent425254cdc9b7ff515285250c30976858f0f17abf (diff)
downloadchromium_src-f7daade0fd1b9c4607c31de021ffbdaa877ff792.zip
chromium_src-f7daade0fd1b9c4607c31de021ffbdaa877ff792.tar.gz
chromium_src-f7daade0fd1b9c4607c31de021ffbdaa877ff792.tar.bz2
Switch various performance tests to produce output for use by the new generic
plotting log parser. BUG=b/1221588 TEST=once scripts and data are also switched, perf tests still plot Review URL: http://codereview.chromium.org/6431 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3602 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/ui_test.h')
-rw-r--r--chrome/test/ui/ui_test.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/chrome/test/ui/ui_test.h b/chrome/test/ui/ui_test.h
index 0027c97..8c67282 100644
--- a/chrome/test/ui/ui_test.h
+++ b/chrome/test/ui/ui_test.h
@@ -160,6 +160,27 @@ class UITest : public testing::Test {
const std::wstring& units,
bool important);
+ // Like PrintResult(), but prints a (mean, standard deviation) result pair.
+ // The |<values>| should be two comma-seaprated numbers, the mean and
+ // standard deviation (or other error metric) of the measurement.
+ void PrintResultMeanAndError(const std::wstring& measurement,
+ const std::wstring& modifier,
+ const std::wstring& trace,
+ const std::wstring& mean_and_error,
+ const std::wstring& units,
+ bool important);
+
+ // Like PrintResult(), but prints an entire list of results. The |values|
+ // will generally be a list of comma-separated numbers. A typical
+ // post-processing step might produce plots of their mean and standard
+ // deviation.
+ void PrintResultList(const std::wstring& measurement,
+ const std::wstring& modifier,
+ const std::wstring& trace,
+ const std::wstring& values,
+ const std::wstring& units,
+ bool important);
+
// Gets the directory for the currently active profile in the browser.
std::wstring GetDownloadDirectory();
@@ -291,6 +312,16 @@ class UITest : public testing::Test {
// the given message if any do.
void AssertAppNotRunning(const std::wstring& error_message);
+ // Common functionality for the public PrintResults methods.
+ void PrintResultsImpl(const std::wstring& measurement,
+ const std::wstring& modifier,
+ const std::wstring& trace,
+ const std::wstring& values,
+ const std::wstring& prefix,
+ const std::wstring& suffix,
+ const std::wstring& units,
+ bool important);
+
protected:
AutomationProxy* automation() {
EXPECT_TRUE(server_.get());