| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 14 #include "chrome/common/json_value_serializer.h" | 14 #include "chrome/common/json_value_serializer.h" |
| 15 #include "chrome/test/automation/tab_proxy.h" | 15 #include "chrome/test/automation/tab_proxy.h" |
| 16 #include "chrome/test/ui/javascript_test_util.h" | 16 #include "chrome/test/ui/javascript_test_util.h" |
| 17 #include "chrome/test/ui/ui_test.h" | 17 #include "chrome/test/ui/ui_perf_test.h" |
| 18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "net/base/net_util.h" | 19 #include "net/base/net_util.h" |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const char kRunDromaeo[] = "run-dromaeo-benchmark"; | 23 const char kRunDromaeo[] = "run-dromaeo-benchmark"; |
| 24 | 24 |
| 25 class DromaeoTest : public UITest { | 25 class DromaeoTest : public UIPerfTest { |
| 26 public: | 26 public: |
| 27 typedef std::map<std::string, std::string> ResultsMap; | 27 typedef std::map<std::string, std::string> ResultsMap; |
| 28 | 28 |
| 29 DromaeoTest() : reference_(false) { | 29 DromaeoTest() : reference_(false) { |
| 30 dom_automation_enabled_ = true; | 30 dom_automation_enabled_ = true; |
| 31 show_window_ = true; | 31 show_window_ = true; |
| 32 } | 32 } |
| 33 | 33 |
| 34 void RunTest(const FilePath::CharType* suite) { | 34 void RunTest(const FilePath::CharType* suite) { |
| 35 FilePath test_path = GetDromaeoDir(); | 35 FilePath test_path = GetDromaeoDir(); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 TEST_F(DromaeoReferenceTest, JSLibPerf) { | 169 TEST_F(DromaeoReferenceTest, JSLibPerf) { |
| 170 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | 170 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) |
| 171 return; | 171 return; |
| 172 | 172 |
| 173 RunTest(FILE_PATH_LITERAL("jslib")); | 173 RunTest(FILE_PATH_LITERAL("jslib")); |
| 174 } | 174 } |
| 175 | 175 |
| 176 | 176 |
| 177 } // namespace | 177 } // namespace |
| OLD | NEW |