OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/bind.h" |
| 6 #include "base/test/launcher/unit_test_launcher.h" |
| 7 #include "base/test/perf_test_suite.h" |
| 8 #include "ui/views/test/views_test_suite.h" |
| 9 |
| 10 class ViewsPerfTestSuite : public base::PerfTestSuite { |
| 11 public: |
| 12 ViewsPerfTestSuite(int argc, char** argv) : base::PerfTestSuite(argc, argv) {} |
| 13 |
| 14 protected: |
| 15 void Initialize() override { |
| 16 PerfTestSuite::Initialize(); |
| 17 test::InitializeViewsTestSuite(); |
| 18 } |
| 19 |
| 20 void Shutdown() override { |
| 21 test::ShutdownViewsTestSuite(); |
| 22 PerfTestSuite::Shutdown(); |
| 23 } |
| 24 |
| 25 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(ViewsPerfTestSuite); |
| 27 }; |
| 28 |
| 29 int main(int argc, char** argv) { |
| 30 ViewsPerfTestSuite test_suite(argc, argv); |
| 31 |
| 32 return base::LaunchUnitTestsSerially( |
| 33 argc, argv, |
| 34 base::Bind(&ViewsPerfTestSuite::Run, |
| 35 base::Unretained(&test_suite))); |
| 36 } |
OLD | NEW |