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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
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 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/platform_test.h" 11 #include "testing/platform_test.h"
12 #include "ui/views/test/test_views_delegate.h" 12 #include "ui/views/test/test_views_delegate.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include "ui/base/win/scoped_ole_initializer.h" 15 #include "ui/base/win/scoped_ole_initializer.h"
16 #endif 16 #endif
17 17
18 namespace views { 18 namespace views {
19 19
20 class ViewsTestHelper; 20 class ViewsTestHelper;
21 21
22 // A base class for views unit test. It creates a message loop necessary 22 // A base class for views unit test. It creates a message loop necessary
23 // to drive UI events and takes care of OLE initialization for windows. 23 // to drive UI events and takes care of OLE initialization for windows.
24 class ViewsTestBase : public PlatformTest { 24 class ViewsTestBase : public PlatformTest {
25 public: 25 public:
26 ViewsTestBase(); 26 ViewsTestBase();
27 virtual ~ViewsTestBase(); 27 virtual ~ViewsTestBase();
28 28
29 // testing::Test: 29 // testing::Test:
30 virtual void SetUp() OVERRIDE; 30 virtual void SetUp() override;
31 virtual void TearDown() OVERRIDE; 31 virtual void TearDown() override;
32 32
33 void RunPendingMessages(); 33 void RunPendingMessages();
34 34
35 // Creates a widget of |type| with any platform specific data for use in 35 // Creates a widget of |type| with any platform specific data for use in
36 // cross-platform tests. 36 // cross-platform tests.
37 Widget::InitParams CreateParams(Widget::InitParams::Type type); 37 Widget::InitParams CreateParams(Widget::InitParams::Type type);
38 38
39 protected: 39 protected:
40 TestViewsDelegate& views_delegate() const { return *views_delegate_.get(); } 40 TestViewsDelegate& views_delegate() const { return *views_delegate_.get(); }
41 41
(...skipping 17 matching lines...) Expand all
59 #if defined(OS_WIN) 59 #if defined(OS_WIN)
60 ui::ScopedOleInitializer ole_initializer_; 60 ui::ScopedOleInitializer ole_initializer_;
61 #endif 61 #endif
62 62
63 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase); 63 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase);
64 }; 64 };
65 65
66 } // namespace views 66 } // namespace views
67 67
68 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ 68 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_
OLDNEW
« no previous file with comments | « ui/views/test/ui_controls_factory_desktop_aurax11.cc ('k') | ui/views/test/views_test_helper_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698