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

Unified Diff: chrome/test/ui/ui_perf_test.cc

Issue 223163003: Remove the remaining automation-based tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 | « chrome/test/ui/ui_perf_test.h ('k') | chrome/test/ui/ui_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/ui_perf_test.cc
===================================================================
--- chrome/test/ui/ui_perf_test.cc (revision 261647)
+++ chrome/test/ui/ui_perf_test.cc (working copy)
@@ -1,52 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/test/ui/ui_perf_test.h"
-
-#include "base/path_service.h"
-#include "chrome/common/chrome_paths.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/test/base/chrome_process_util.h"
-#include "chrome/test/base/test_switches.h"
-#include "chrome/test/perf/perf_test.h"
-
-void UIPerfTest::SetLaunchSwitches() {
- UITestBase::SetLaunchSwitches();
-
- // Reduce performance test variance by disabling background networking.
- launch_arguments_.AppendSwitch(switches::kDisableBackgroundNetworking);
-
- // We don't want tests to slow down mysteriously when we update the minimum
- // plugin version.
- launch_arguments_.AppendSwitch(switches::kAllowOutdatedPlugins);
-}
-
-void UIPerfTest::PrintIOPerfInfo(const char* test_name) {
- ChromeProcessList chrome_processes(
- GetRunningChromeProcesses(browser_process_id()));
- perf_test::PrintIOPerfInfo(test_name, chrome_processes,
- browser_process_id());
-}
-
-void UIPerfTest::PrintMemoryUsageInfo(const char* test_name) {
- ChromeProcessList chrome_processes(
- GetRunningChromeProcesses(browser_process_id()));
- perf_test::PrintMemoryUsageInfo(test_name, chrome_processes,
- browser_process_id());
-}
-
-void UIPerfTest::UseReferenceBuild() {
- base::FilePath dir;
- PathService::Get(chrome::DIR_TEST_TOOLS, &dir);
- dir = dir.AppendASCII("reference_build");
-#if defined(OS_WIN)
- dir = dir.AppendASCII("chrome_win");
-#elif defined(OS_LINUX)
- dir = dir.AppendASCII("chrome_linux");
-#elif defined(OS_MACOSX)
- dir = dir.AppendASCII("chrome_mac");
-#endif
- launch_arguments_.AppendSwitch(switches::kEnableChromiumBranding);
- SetBrowserDirectory(dir);
-}
« no previous file with comments | « chrome/test/ui/ui_perf_test.h ('k') | chrome/test/ui/ui_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698