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

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

Issue 857433003: Update {virtual,override,final} to follow C++11 style chrome/browser/ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase Created 5 years, 11 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 #include "chrome/browser/ui/ash/ime_controller_chromeos.h" 5 #include "chrome/browser/ui/ash/ime_controller_chromeos.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" 8 #include "chrome/browser/chromeos/input_method/input_method_configuration.h"
9 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" 9 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/base/accelerators/accelerator.h" 11 #include "ui/base/accelerators/accelerator.h"
12 #include "ui/events/event_constants.h" 12 #include "ui/events/event_constants.h"
13 #include "ui/events/keycodes/keyboard_codes.h" 13 #include "ui/events/keycodes/keyboard_codes.h"
14 14
15 class ImeControllerTest : public testing::Test { 15 class ImeControllerTest : public testing::Test {
16 public: 16 public:
17 ImeControllerTest() : mock_input_method_manager_(NULL) {} 17 ImeControllerTest() : mock_input_method_manager_(NULL) {}
18 virtual ~ImeControllerTest() {} 18 ~ImeControllerTest() override {}
19 19
20 virtual void SetUp() override { 20 void SetUp() override {
21 mock_input_method_manager_ = 21 mock_input_method_manager_ =
22 new chromeos::input_method::MockInputMethodManager; 22 new chromeos::input_method::MockInputMethodManager;
23 chromeos::input_method::InitializeForTesting( 23 chromeos::input_method::InitializeForTesting(
24 mock_input_method_manager_); 24 mock_input_method_manager_);
25 } 25 }
26 26
27 virtual void TearDown() override { 27 void TearDown() override {
28 chromeos::input_method::Shutdown(); 28 chromeos::input_method::Shutdown();
29 mock_input_method_manager_ = NULL; 29 mock_input_method_manager_ = NULL;
30 } 30 }
31 31
32 protected: 32 protected:
33 ImeController controller_; 33 ImeController controller_;
34 chromeos::input_method::MockInputMethodManager* mock_input_method_manager_; 34 chromeos::input_method::MockInputMethodManager* mock_input_method_manager_;
35 35
36 private: 36 private:
37 DISALLOW_COPY_AND_ASSIGN(ImeControllerTest); 37 DISALLOW_COPY_AND_ASSIGN(ImeControllerTest);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 EXPECT_TRUE(remapped.IsRepeat()); 93 EXPECT_TRUE(remapped.IsRepeat());
94 } 94 }
95 { 95 {
96 ui::Accelerator accel(ui::VKEY_A, ui::EF_CONTROL_DOWN); 96 ui::Accelerator accel(ui::VKEY_A, ui::EF_CONTROL_DOWN);
97 EXPECT_FALSE(accel.IsRepeat()); 97 EXPECT_FALSE(accel.IsRepeat());
98 ui::Accelerator remapped = controller_.RemapAccelerator(accel); 98 ui::Accelerator remapped = controller_.RemapAccelerator(accel);
99 EXPECT_EQ(accel, remapped); 99 EXPECT_EQ(accel, remapped);
100 EXPECT_FALSE(remapped.IsRepeat()); 100 EXPECT_FALSE(remapped.IsRepeat());
101 } 101 }
102 } 102 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/ime_controller_chromeos.h ('k') | chrome/browser/ui/ash/keyboard_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698