Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: chrome/test/ui/ui_test.h

Issue 42628: - Add UI test for the V8 Benchmark Suite.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/sunspider_uitest.js ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_UI_UI_TEST_H_ 5 #ifndef CHROME_TEST_UI_UI_TEST_H_
6 #define CHROME_TEST_UI_UI_TEST_H_ 6 #define CHROME_TEST_UI_UI_TEST_H_
7 7
8 // This file provides a common base for running UI unit tests, which operate 8 // This file provides a common base for running UI unit tests, which operate
9 // the entire browser application in a separate process for holistic 9 // the entire browser application in a separate process for holistic
10 // functional testing. 10 // functional testing.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // produced for various builds, using the combined |measurement| + |modifier| 194 // produced for various builds, using the combined |measurement| + |modifier|
195 // string to specify a particular graph and the |trace| to identify a trace 195 // string to specify a particular graph and the |trace| to identify a trace
196 // (i.e., data series) on that graph. 196 // (i.e., data series) on that graph.
197 void PrintResult(const std::string& measurement, 197 void PrintResult(const std::string& measurement,
198 const std::string& modifier, 198 const std::string& modifier,
199 const std::string& trace, 199 const std::string& trace,
200 size_t value, 200 size_t value,
201 const std::string& units, 201 const std::string& units,
202 bool important); 202 bool important);
203 203
204 // Like the above version of PrintResult(), but takes a std::string value
205 // instead of a size_t.
206 void PrintResult(const std::string& measurement,
207 const std::string& modifier,
208 const std::string& trace,
209 const std::string& value,
210 const std::string& units,
211 bool important);
212
204 // Like PrintResult(), but prints a (mean, standard deviation) result pair. 213 // Like PrintResult(), but prints a (mean, standard deviation) result pair.
205 // The |<values>| should be two comma-seaprated numbers, the mean and 214 // The |<values>| should be two comma-seaprated numbers, the mean and
206 // standard deviation (or other error metric) of the measurement. 215 // standard deviation (or other error metric) of the measurement.
207 void PrintResultMeanAndError(const std::string& measurement, 216 void PrintResultMeanAndError(const std::string& measurement,
208 const std::string& modifier, 217 const std::string& modifier,
209 const std::string& trace, 218 const std::string& trace,
210 const std::string& mean_and_error, 219 const std::string& mean_and_error,
211 const std::string& units, 220 const std::string& units,
212 bool important); 221 bool important);
213 222
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 #ifdef UNIT_TEST 483 #ifdef UNIT_TEST
475 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); 484 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr);
476 485
477 template<typename T> 486 template<typename T>
478 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { 487 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
479 return out << ptr.get(); 488 return out << ptr.get();
480 } 489 }
481 #endif // UNIT_TEST 490 #endif // UNIT_TEST
482 491
483 #endif // CHROME_TEST_UI_UI_TEST_H_ 492 #endif // CHROME_TEST_UI_UI_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/ui/sunspider_uitest.js ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698