summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_test_suite.cc
blob: 5b4db504d3602fe5b28a623435a4d130e9897fce (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
// Copyright 2013 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/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/compositor/compositor_setup.h"
#include "ui/test/test_suite.h"

class KeyboardTestSuite : public ui::test::UITestSuite {
 public:
  KeyboardTestSuite(int argc, char** argv)
      : ui::test::UITestSuite(argc, argv) {
  }

 protected:
  virtual void Initialize() OVERRIDE;
  virtual void Shutdown() OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(KeyboardTestSuite);
};

void KeyboardTestSuite::Initialize() {
  ui::test::UITestSuite::Initialize();

  ui::SetupTestCompositor();
}

void KeyboardTestSuite::Shutdown() {
  ui::test::UITestSuite::Shutdown();
}

int main(int argc, char** argv) {
  return KeyboardTestSuite(argc, argv).Run();
}