| 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 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/threading/platform_thread.h" | 11 #include "base/threading/platform_thread.h" |
| 12 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
| 13 #include "chrome/common/chrome_constants.h" | 13 #include "chrome/common/chrome_constants.h" |
| 14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| 16 #include "chrome/common/net/url_fixer_upper.h" | 16 #include "chrome/common/net/url_fixer_upper.h" |
| 17 #include "chrome/test/automation/automation_proxy.h" | 17 #include "chrome/test/automation/automation_proxy.h" |
| 18 #include "chrome/test/automation/browser_proxy.h" | 18 #include "chrome/test/automation/browser_proxy.h" |
| 19 #include "chrome/test/automation/tab_proxy.h" | 19 #include "chrome/test/automation/tab_proxy.h" |
| 20 #include "chrome/test/automation/window_proxy.h" | 20 #include "chrome/test/automation/window_proxy.h" |
| 21 #include "chrome/test/base/chrome_process_util.h" | 21 #include "chrome/test/base/chrome_process_util.h" |
| 22 #include "chrome/test/perf/perf_test.h" | 22 #include "chrome/test/perf/perf_test.h" |
| 23 #include "chrome/test/ui/ui_perf_test.h" | 23 #include "chrome/test/ui/ui_perf_test.h" |
| 24 #include "gpu/command_buffer/service/gpu_switches.h" | 24 #include "gpu/command_buffer/service/gpu_switches.h" |
| 25 #include "net/base/net_util.h" | 25 #include "net/base/net_util.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 #include "testing/perf/perf_test.h" |
| 27 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| 28 | 29 |
| 29 namespace { | 30 namespace { |
| 30 | 31 |
| 31 static const base::FilePath::CharType kTempDirName[] = | 32 static const base::FilePath::CharType kTempDirName[] = |
| 32 FILE_PATH_LITERAL("memory_test_profile"); | 33 FILE_PATH_LITERAL("memory_test_profile"); |
| 33 | 34 |
| 34 class MemoryTest : public UIPerfTest { | 35 class MemoryTest : public UIPerfTest { |
| 35 public: | 36 public: |
| 36 MemoryTest() : cleanup_temp_dir_on_exit_(false) {} | 37 MemoryTest() : cleanup_temp_dir_on_exit_(false) {} |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 GENERAL_MIX_MEMORY_TESTS(SingleTabTest, 1); | 517 GENERAL_MIX_MEMORY_TESTS(SingleTabTest, 1); |
| 517 GENERAL_MIX_MEMORY_TESTS(FiveTabTest, 5); | 518 GENERAL_MIX_MEMORY_TESTS(FiveTabTest, 5); |
| 518 GENERAL_MIX_MEMORY_TESTS(TwelveTabTest, 12); | 519 GENERAL_MIX_MEMORY_TESTS(TwelveTabTest, 12); |
| 519 | 520 |
| 520 // Commented out until the recorded cache data is added. | 521 // Commented out until the recorded cache data is added. |
| 521 //TEST_F(MembusterMemoryTest, Windows) { | 522 //TEST_F(MembusterMemoryTest, Windows) { |
| 522 // RunTest("membuster", 0); | 523 // RunTest("membuster", 0); |
| 523 //} | 524 //} |
| 524 | 525 |
| 525 } // namespace | 526 } // namespace |
| OLD | NEW |