summaryrefslogtreecommitdiffstats
path: root/ui/ozone/run_all_unittests.cc
blob: 32270992bb7b7f844a000e41bf2b611eb6f6654a (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/bind.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "build/build_config.h"

namespace {

class OzoneTestSuite : public base::TestSuite {
 public:
  OzoneTestSuite(int argc, char** argv);

 protected:
  // base::TestSuite:
  virtual void Initialize() OVERRIDE;
  virtual void Shutdown() OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(OzoneTestSuite);
};

OzoneTestSuite::OzoneTestSuite(int argc, char** argv)
    : base::TestSuite(argc, argv) {}

void OzoneTestSuite::Initialize() {
  base::TestSuite::Initialize();
}

void OzoneTestSuite::Shutdown() {
  base::TestSuite::Shutdown();
}

}  // namespace

int main(int argc, char** argv) {
  OzoneTestSuite test_suite(argc, argv);

  return base::LaunchUnitTests(argc,
                               argv,
                               base::Bind(&OzoneTestSuite::Run,
                                          base::Unretained(&test_suite)));
}