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

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

Issue 15838015: Revert 202787 "Remove unnecessary ui::CompositorTestSupport" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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
« no previous file with comments | « trunk/src/ui/keyboard/keyboard.gyp ('k') | trunk/src/ui/message_center/message_center.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compositor/compositor_setup.h"
8 #include "ui/compositor/test/compositor_test_support.h"
8 #include "ui/test/test_suite.h" 9 #include "ui/test/test_suite.h"
9 10
10 class KeyboardTestSuite : public ui::test::UITestSuite { 11 class KeyboardTestSuite : public ui::test::UITestSuite {
11 public: 12 public:
12 KeyboardTestSuite(int argc, char** argv) 13 KeyboardTestSuite(int argc, char** argv)
13 : ui::test::UITestSuite(argc, argv) { 14 : ui::test::UITestSuite(argc, argv) {
14 } 15 }
15 16
16 protected: 17 protected:
17 virtual void Initialize() OVERRIDE; 18 virtual void Initialize() OVERRIDE;
18 virtual void Shutdown() OVERRIDE; 19 virtual void Shutdown() OVERRIDE;
19 20
20 private: 21 private:
21 DISALLOW_COPY_AND_ASSIGN(KeyboardTestSuite); 22 DISALLOW_COPY_AND_ASSIGN(KeyboardTestSuite);
22 }; 23 };
23 24
24 void KeyboardTestSuite::Initialize() { 25 void KeyboardTestSuite::Initialize() {
25 ui::test::UITestSuite::Initialize(); 26 ui::test::UITestSuite::Initialize();
26 27
28 ui::CompositorTestSupport::Initialize();
27 ui::SetupTestCompositor(); 29 ui::SetupTestCompositor();
28 } 30 }
29 31
30 void KeyboardTestSuite::Shutdown() { 32 void KeyboardTestSuite::Shutdown() {
33 ui::CompositorTestSupport::Terminate();
31 ui::test::UITestSuite::Shutdown(); 34 ui::test::UITestSuite::Shutdown();
32 } 35 }
33 36
34 int main(int argc, char** argv) { 37 int main(int argc, char** argv) {
35 return KeyboardTestSuite(argc, argv).Run(); 38 return KeyboardTestSuite(argc, argv).Run();
36 } 39 }
OLDNEW
« no previous file with comments | « trunk/src/ui/keyboard/keyboard.gyp ('k') | trunk/src/ui/message_center/message_center.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698