Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: trunk/src/ui/keyboard/keyboard_test_suite.cc

Issue 22648006: Revert 216780 "Clean up compositor initialization/destruction." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Deleted: svn:mergeinfo
OLDNEW
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/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "ui/compositor/compositor_setup.h"
7 #include "ui/test/test_suite.h" 8 #include "ui/test/test_suite.h"
8 9
9 class KeyboardTestSuite : public ui::test::UITestSuite { 10 class KeyboardTestSuite : public ui::test::UITestSuite {
10 public: 11 public:
11 KeyboardTestSuite(int argc, char** argv) 12 KeyboardTestSuite(int argc, char** argv)
12 : ui::test::UITestSuite(argc, argv) { 13 : ui::test::UITestSuite(argc, argv) {
13 } 14 }
14 15
15 protected: 16 protected:
16 virtual void Initialize() OVERRIDE; 17 virtual void Initialize() OVERRIDE;
17 virtual void Shutdown() OVERRIDE; 18 virtual void Shutdown() OVERRIDE;
18 19
19 private: 20 private:
20 DISALLOW_COPY_AND_ASSIGN(KeyboardTestSuite); 21 DISALLOW_COPY_AND_ASSIGN(KeyboardTestSuite);
21 }; 22 };
22 23
23 void KeyboardTestSuite::Initialize() { 24 void KeyboardTestSuite::Initialize() {
24 ui::test::UITestSuite::Initialize(); 25 ui::test::UITestSuite::Initialize();
26
27 ui::SetupTestCompositor();
25 } 28 }
26 29
27 void KeyboardTestSuite::Shutdown() { 30 void KeyboardTestSuite::Shutdown() {
28 ui::test::UITestSuite::Shutdown(); 31 ui::test::UITestSuite::Shutdown();
29 } 32 }
30 33
31 int main(int argc, char** argv) { 34 int main(int argc, char** argv) {
32 return KeyboardTestSuite(argc, argv).Run(); 35 return KeyboardTestSuite(argc, argv).Run();
33 } 36 }
OLDNEW
« no previous file with comments | « trunk/src/ui/compositor/test/test_suite.cc ('k') | trunk/src/ui/message_center/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698