| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/basictypes.h" | 5 #include "base/bind.h" |
| 6 #include "base/compiler_specific.h" | 6 #include "base/test/unit_test_launcher.h" |
| 7 #include "ui/base/resource/resource_bundle.h" | |
| 8 #include "ui/base/ui_base_paths.h" | |
| 9 #include "ui/test/test_suite.h" | 7 #include "ui/test/test_suite.h" |
| 10 #include "ui/views/view.h" | |
| 11 | |
| 12 class MessageCenterTestSuite : public ui::test::UITestSuite { | |
| 13 public: | |
| 14 MessageCenterTestSuite(int argc, char** argv) | |
| 15 : ui::test::UITestSuite(argc, argv) { | |
| 16 } | |
| 17 | |
| 18 protected: | |
| 19 virtual void Initialize() OVERRIDE; | |
| 20 virtual void Shutdown() OVERRIDE; | |
| 21 | |
| 22 private: | |
| 23 DISALLOW_COPY_AND_ASSIGN(MessageCenterTestSuite); | |
| 24 }; | |
| 25 | |
| 26 void MessageCenterTestSuite::Initialize() { | |
| 27 ui::test::UITestSuite::Initialize(); | |
| 28 } | |
| 29 | |
| 30 void MessageCenterTestSuite::Shutdown() { | |
| 31 ui::test::UITestSuite::Shutdown(); | |
| 32 } | |
| 33 | 8 |
| 34 int main(int argc, char** argv) { | 9 int main(int argc, char** argv) { |
| 35 return MessageCenterTestSuite(argc, argv).Run(); | 10 ui::test::UITestSuite test_suite(argc, argv); |
| 11 |
| 12 return base::LaunchUnitTests( |
| 13 argc, argv, base::Bind(&ui::test::UITestSuite::Run, |
| 14 base::Unretained(&test_suite))); |
| 36 } | 15 } |
| OLD | NEW |