blob: 375ddc7447b4f639dab5eadeb2f7120cfc3e62b2 [file] [log] [blame]
anantad936bc12016-06-22 21:40:311// Copyright 2016 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/command_line.h"
7#include "base/test/launcher/unit_test_launcher.h"
8#include "base/test/test_suite.h"
9#include "build/build_config.h"
10
11int main(int argc, char** argv) {
12 // Ensure that the CommandLine instance honors the command line passed in
13 // instead of the default behavior on Windows which is to use the shell32
14 // CommandLineToArgvW API. The chrome_elf_unittests test suite should not
15 // depend on user32 directly or indirectly (For the curious shell32 depends
16 // on user32)
17 base::CommandLine::InitUsingArgvForTesting(argc, argv);
18 base::TestSuite test_suite(argc, argv);
19 int ret = base::LaunchUnitTests(
20 argc, argv,
21 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
22 return ret;
23}