| Index: ash/virtual_keyboard_controller_unittest.cc
|
| diff --git a/ash/virtual_keyboard_controller_unittest.cc b/ash/virtual_keyboard_controller_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8072b84acfa897bc518af0bacbd45125fa3dbcb5
|
| --- /dev/null
|
| +++ b/ash/virtual_keyboard_controller_unittest.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ash/virtual_keyboard_controller.h"
|
| +
|
| +#include "ash/shell.h"
|
| +#include "ash/test/ash_test_base.h"
|
| +#include "ash/wm/maximize_mode/maximize_mode_controller.h"
|
| +#include "ui/keyboard/keyboard_util.h"
|
| +
|
| +namespace ash {
|
| +namespace test {
|
| +
|
| +typedef AshTestBase VirtualKeyboardControllerTest;
|
| +
|
| +// Tests that the onscreen keyboard becomes enabled when maximize mode is
|
| +// enabled.
|
| +TEST_F(VirtualKeyboardControllerTest, EnabledDuringMaximizeMode) {
|
| + ASSERT_FALSE(keyboard::IsKeyboardEnabled());
|
| + Shell::GetInstance()->maximize_mode_controller()->
|
| + EnableMaximizeModeWindowManager(true);
|
| + EXPECT_TRUE(keyboard::IsKeyboardEnabled());
|
| + Shell::GetInstance()->maximize_mode_controller()->
|
| + EnableMaximizeModeWindowManager(false);
|
| + EXPECT_FALSE(keyboard::IsKeyboardEnabled());
|
| +}
|
| +
|
| +} // namespace test
|
| +} // namespace ash
|
|
|