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

Side by Side Diff: ui/views/test/views_test_base.h

Issue 9535025: Remove the singleton instance get/delete methods from RootWindow (yay) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « ui/aura/test/aura_test_base.cc ('k') | ui/views/test/views_test_base.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ 5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_BASE_H_
6 #define UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ 6 #define UI_VIEWS_TEST_VIEWS_TEST_BASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void set_views_delegate(TestViewsDelegate* views_delegate) { 46 void set_views_delegate(TestViewsDelegate* views_delegate) {
47 views_delegate_.reset(views_delegate); 47 views_delegate_.reset(views_delegate);
48 } 48 }
49 49
50 MessageLoop* message_loop() { return &message_loop_; } 50 MessageLoop* message_loop() { return &message_loop_; }
51 51
52 private: 52 private:
53 MessageLoopForUI message_loop_; 53 MessageLoopForUI message_loop_;
54 scoped_ptr<TestViewsDelegate> views_delegate_; 54 scoped_ptr<TestViewsDelegate> views_delegate_;
55 #if defined(USE_AURA) 55 #if defined(USE_AURA)
56 scoped_ptr<aura::RootWindow> root_window_;
56 scoped_ptr<aura::test::TestActivationClient> test_activation_client_; 57 scoped_ptr<aura::test::TestActivationClient> test_activation_client_;
57 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; 58 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_;
58 scoped_ptr<ui::InputMethod> test_input_method_; 59 scoped_ptr<ui::InputMethod> test_input_method_;
59 aura::RootWindow* root_window_;
60 #endif 60 #endif
61 bool setup_called_; 61 bool setup_called_;
62 bool teardown_called_; 62 bool teardown_called_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase); 64 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase);
65 }; 65 };
66 66
67 } // namespace views 67 } // namespace views
68 68
69 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ 69 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/views/test/views_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698