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

Side by Side Diff: chrome/browser/ui/ash/keyboard_controller_browsertest.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/test/base/in_process_browser_test.h" 6 #include "chrome/test/base/in_process_browser_test.h"
7 #include "content/public/browser/web_contents.h" 7 #include "content/public/browser/web_contents.h"
8 #include "ui/base/ime/dummy_text_input_client.h" 8 #include "ui/base/ime/dummy_text_input_client.h"
9 #include "ui/base/ime/input_method.h" 9 #include "ui/base/ime/input_method.h"
10 #include "ui/base/ime/input_method_factory.h" 10 #include "ui/base/ime/input_method_factory.h"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 VirtualKeyboardWebContentTest() {}; 23 VirtualKeyboardWebContentTest() {};
24 virtual ~VirtualKeyboardWebContentTest() {}; 24 virtual ~VirtualKeyboardWebContentTest() {};
25 25
26 virtual void SetUp() override { 26 virtual void SetUp() override {
27 ui::SetUpInputMethodFactoryForTesting(); 27 ui::SetUpInputMethodFactoryForTesting();
28 InProcessBrowserTest::SetUp(); 28 InProcessBrowserTest::SetUp();
29 } 29 }
30 30
31 // Ensure that the virtual keyboard is enabled. 31 // Ensure that the virtual keyboard is enabled.
32 virtual void SetUpCommandLine(CommandLine* command_line) override { 32 virtual void SetUpCommandLine(base::CommandLine* command_line) override {
33 command_line->AppendSwitch( 33 command_line->AppendSwitch(
34 keyboard::switches::kEnableVirtualKeyboard); 34 keyboard::switches::kEnableVirtualKeyboard);
35 } 35 }
36 36
37 keyboard::KeyboardControllerProxy* proxy() { 37 keyboard::KeyboardControllerProxy* proxy() {
38 return keyboard::KeyboardController::GetInstance()->proxy(); 38 return keyboard::KeyboardController::GetInstance()->proxy();
39 } 39 }
40 40
41 protected: 41 protected:
42 void FocusEditableNodeAndShowKeyboard() { 42 void FocusEditableNodeAndShowKeyboard() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Simulate hide keyboard by pressing hide key on the virtual keyboard. 100 // Simulate hide keyboard by pressing hide key on the virtual keyboard.
101 keyboard::KeyboardController::GetInstance()->HideKeyboard( 101 keyboard::KeyboardController::GetInstance()->HideKeyboard(
102 keyboard::KeyboardController::HIDE_REASON_MANUAL); 102 keyboard::KeyboardController::HIDE_REASON_MANUAL);
103 EXPECT_FALSE(IsKeyboardVisible()); 103 EXPECT_FALSE(IsKeyboardVisible());
104 104
105 MockEnableIMEInDifferentExtension("chrome-extension://domain-2"); 105 MockEnableIMEInDifferentExtension("chrome-extension://domain-2");
106 // Keyboard should not become visible if previous keyboard is not, even if it 106 // Keyboard should not become visible if previous keyboard is not, even if it
107 // is currently focused on an editable node. 107 // is currently focused on an editable node.
108 EXPECT_FALSE(IsKeyboardVisible()); 108 EXPECT_FALSE(IsKeyboardVisible());
109 } 109 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate_views.cc ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698