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

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

Issue 12672008: Move xkeyboard.cc from c/b/chromeos/input_method to chromeos/ime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | Annotate | Revision Log
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/caps_lock_delegate_chromeos.h" 5 #include "chrome/browser/ui/ash/caps_lock_delegate_chromeos.h"
6 6
7 #include "chrome/browser/chromeos/input_method/mock_xkeyboard.h"
8 #include "chrome/test/base/in_process_browser_test.h" 7 #include "chrome/test/base/in_process_browser_test.h"
9 #include "chrome/test/base/ui_test_utils.h" 8 #include "chrome/test/base/ui_test_utils.h"
9 #include "chromeos/ime/mock_xkeyboard.h"
10 10
11 namespace { 11 namespace {
12 12
13 class CapsLockDelegateTest : public InProcessBrowserTest { 13 class CapsLockDelegateTest : public InProcessBrowserTest {
14 public: 14 public:
15 CapsLockDelegateTest() : initial_caps_lock_state_(false) { 15 CapsLockDelegateTest() : initial_caps_lock_state_(false) {
16 } 16 }
17 17
18 virtual void SetUp() OVERRIDE { 18 virtual void SetUp() OVERRIDE {
19 delegate_.reset(new CapsLockDelegate(&xkeyboard_)); 19 delegate_.reset(new CapsLockDelegate(&xkeyboard_));
(...skipping 29 matching lines...) Expand all
49 EXPECT_EQ(!initial_caps_lock_state_, delegate_->caps_lock_is_on_for_test()); 49 EXPECT_EQ(!initial_caps_lock_state_, delegate_->caps_lock_is_on_for_test());
50 EXPECT_EQ(!initial_caps_lock_state_, xkeyboard_.CapsLockIsEnabled()); 50 EXPECT_EQ(!initial_caps_lock_state_, xkeyboard_.CapsLockIsEnabled());
51 EXPECT_EQ(!initial_caps_lock_state_, delegate_->IsCapsLockEnabled()); 51 EXPECT_EQ(!initial_caps_lock_state_, delegate_->IsCapsLockEnabled());
52 delegate_->SetCapsLockEnabled(initial_caps_lock_state_); 52 delegate_->SetCapsLockEnabled(initial_caps_lock_state_);
53 EXPECT_EQ(initial_caps_lock_state_, delegate_->caps_lock_is_on_for_test()); 53 EXPECT_EQ(initial_caps_lock_state_, delegate_->caps_lock_is_on_for_test());
54 EXPECT_EQ(initial_caps_lock_state_, xkeyboard_.CapsLockIsEnabled()); 54 EXPECT_EQ(initial_caps_lock_state_, xkeyboard_.CapsLockIsEnabled());
55 EXPECT_EQ(initial_caps_lock_state_, delegate_->IsCapsLockEnabled()); 55 EXPECT_EQ(initial_caps_lock_state_, delegate_->IsCapsLockEnabled());
56 } 56 }
57 57
58 } // namespace 58 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/caps_lock_delegate_chromeos.cc ('k') | chrome/browser/ui/ash/event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698