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

Side by Side Diff: ui/views/test/run_all_perftests.cc

Issue 1231763002: Adds a perf test for initializing and painting a views::LabelButton Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: various tweaks Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « ui/views/run_all_unittests.cc ('k') | ui/views/test/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « ui/views/run_all_unittests.cc ('k') | ui/views/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698