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

Unified Diff: src/chrome/test/url_fetch_test/url_fetch_test.cc

Issue 171075: Addding reference build results for DOM perf tests... (Closed) Base URL: svn://chrome-svn/chrome/trunk/
Patch Set: Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/buildbot/scripts/slave/chromium/dom_perf.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/chrome/test/url_fetch_test/url_fetch_test.cc
===================================================================
--- src/chrome/test/url_fetch_test/url_fetch_test.cc (revision 23577)
+++ src/chrome/test/url_fetch_test/url_fetch_test.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/string_util.h"
+#include "chrome/common/chrome_paths.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrome/test/ui/ui_test.h"
@@ -24,6 +25,24 @@
std::string javascript_variable;
};
+ void SetUp() {
+ const CommandLine *cmdLine = CommandLine::ForCurrentProcess();
+ if (cmdLine->HasSwitch(L"reference_build")) {
+ FilePath dir;
+ PathService::Get(chrome::DIR_TEST_TOOLS, &dir);
+ dir = dir.AppendASCII("reference_build");
+#if defined(OS_WIN)
+ dir = dir.AppendASCII("chrome");
+#elif defined(OS_LINUX)
+ dir = dir.AppendASCII("chrome_linux");
+#elif defined(OS_MACOSX)
+ dir = dir.AppendASCII("chrome_mac");
+#endif
+ browser_directory_ = dir;
+ }
+ UITest::SetUp();
+ }
+
void RunTest(const GURL& url, const char *waitCookieName,
const char *waitCookieValue, const wchar_t *varToFetch,
UrlFetchTestResult *result) {
@@ -84,6 +103,9 @@
// --jsvar_output=<filepath>
// Write the value of the variable named by '--jsvar' to a file at the given
// path.
+//
+// --reference_build
+// Use the reference build of chrome for the test.
TEST_F(UrlFetchTest, UrlFetch) {
const CommandLine *cmdLine = CommandLine::ForCurrentProcess();
« no previous file with comments | « no previous file | tools/buildbot/scripts/slave/chromium/dom_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698