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

Side by Side Diff: ui/views/controls/webview/webview_interactive_uitest.cc

Issue 681883002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/views/controls/webview/webview.h" 5 #include "ui/views/controls/webview/webview.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "content/public/test/test_browser_context.h" 10 #include "content/public/test/test_browser_context.h"
11 #include "content/public/test/test_browser_thread.h" 11 #include "content/public/test/test_browser_thread.h"
12 #include "ui/base/ime/text_input_focus_manager.h" 12 #include "ui/base/ime/text_input_focus_manager.h"
13 #include "ui/base/ui_base_switches.h" 13 #include "ui/base/ui_base_switches.h"
14 #include "ui/gl/gl_surface.h" 14 #include "ui/gl/gl_surface.h"
15 #include "ui/views/test/webview_test_helper.h" 15 #include "ui/views/test/webview_test_helper.h"
16 #include "ui/views/test/widget_test.h" 16 #include "ui/views/test/widget_test.h"
17 17
18 namespace { 18 namespace {
19 19
20 class WebViewInteractiveUiTest : public views::test::WidgetTest { 20 class WebViewInteractiveUiTest : public views::test::WidgetTest {
21 public: 21 public:
22 WebViewInteractiveUiTest() 22 WebViewInteractiveUiTest()
23 : ui_thread_(content::BrowserThread::UI, base::MessageLoop::current()) {} 23 : ui_thread_(content::BrowserThread::UI, base::MessageLoop::current()) {}
24 24
25 virtual void SetUp() override { 25 void SetUp() override {
26 gfx::GLSurface::InitializeOneOffForTests(); 26 gfx::GLSurface::InitializeOneOffForTests();
27 WidgetTest::SetUp(); 27 WidgetTest::SetUp();
28 } 28 }
29 29
30 protected: 30 protected:
31 content::BrowserContext* browser_context() { return &browser_context_; } 31 content::BrowserContext* browser_context() { return &browser_context_; }
32 32
33 private: 33 private:
34 content::TestBrowserContext browser_context_; 34 content::TestBrowserContext browser_context_;
35 views::WebViewTestHelper webview_test_helper_; 35 views::WebViewTestHelper webview_test_helper_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 ui::TextInputClient* client2 = webview->GetTextInputClient(); 73 ui::TextInputClient* client2 = webview->GetTextInputClient();
74 EXPECT_NE(null_text_input_client, client2); 74 EXPECT_NE(null_text_input_client, client2);
75 EXPECT_EQ(text_input_focus_manager->GetFocusedTextInputClient(), client2); 75 EXPECT_EQ(text_input_focus_manager->GetFocusedTextInputClient(), client2);
76 EXPECT_NE(client1, client2); 76 EXPECT_NE(client1, client2);
77 77
78 widget->Close(); 78 widget->Close();
79 RunPendingMessages(); 79 RunPendingMessages();
80 } 80 }
81 81
82 } // namespace 82 } // namespace
OLDNEW
« no previous file with comments | « ui/views/controls/webview/web_dialog_view.h ('k') | ui/views/controls/webview/webview_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698