1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mojo / core / test / run_all_perftests.cc [blame]
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/base_switches.h"
#include "base/check.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/test/perf_test_suite.h"
#include "mojo/core/test/scoped_mojo_support.h"
#include "mojo/public/tests/test_support_private.h"
int main(int argc, char** argv) {
CHECK(base::CommandLine::Init(argc, argv));
const auto& cmd = *base::CommandLine::ForCurrentProcess();
auto features = std::make_unique<base::FeatureList>();
features->InitFromCommandLine(
cmd.GetSwitchValueASCII(switches::kEnableFeatures),
cmd.GetSwitchValueASCII(switches::kDisableFeatures));
base::FeatureList::SetInstance(std::move(features));
base::PerfTestSuite test(argc, argv);
mojo::core::test::ScopedMojoSupport mojo_support;
return test.Run();
}