| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PERF_BROWSER_PERF_TEST_H_ | 5 #ifndef CHROME_TEST_PERF_BROWSER_PERF_TEST_H_ |
| 6 #define CHROME_TEST_PERF_BROWSER_PERF_TEST_H_ | 6 #define CHROME_TEST_PERF_BROWSER_PERF_TEST_H_ |
| 7 | 7 |
| 8 #include "chrome/test/base/in_process_browser_test.h" | 8 #include "chrome/test/base/in_process_browser_test.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class CommandLine; | 11 class CommandLine; |
| 12 } | 12 } |
| 13 | 13 |
| 14 class BrowserPerfTest : public InProcessBrowserTest { | 14 class BrowserPerfTest : public InProcessBrowserTest { |
| 15 public: | 15 public: |
| 16 BrowserPerfTest(); | 16 BrowserPerfTest(); |
| 17 virtual ~BrowserPerfTest(); | 17 virtual ~BrowserPerfTest(); |
| 18 | 18 |
| 19 // Set up common browser perf test flags. Typically call down to this if | 19 // Set up common browser perf test flags. Typically call down to this if |
| 20 // overridden. | 20 // overridden. |
| 21 virtual void SetUpCommandLine(base::CommandLine* command_line) override; | 21 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 22 | 22 |
| 23 // Prints IO performance data for use by perf graphs. | 23 // Prints IO performance data for use by perf graphs. |
| 24 void PrintIOPerfInfo(const std::string& test_name); | 24 void PrintIOPerfInfo(const std::string& test_name); |
| 25 | 25 |
| 26 // Prints memory usage data for use by perf graphs. | 26 // Prints memory usage data for use by perf graphs. |
| 27 void PrintMemoryUsageInfo(const std::string& test_name); | 27 void PrintMemoryUsageInfo(const std::string& test_name); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 #endif // CHROME_TEST_PERF_BROWSER_PERF_TEST_H_ | 30 #endif // CHROME_TEST_PERF_BROWSER_PERF_TEST_H_ |
| OLD | NEW |