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

Side by Side Diff: chrome/browser/extensions/key_identifier_conversion_views_unittest.cc

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/key_identifier_conversion_views.h" 5 #include "chrome/browser/extensions/key_identifier_conversion_views.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "content/public/test/test_browser_thread.h" 10 #include "content/public/test/test_browser_thread.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/base/event.h" 12 #include "ui/base/events/event.h"
13 #include "ui/base/keycodes/keyboard_codes.h" 13 #include "ui/base/keycodes/keyboard_codes.h"
14 14
15 using content::BrowserThread; 15 using content::BrowserThread;
16 16
17 namespace { 17 namespace {
18 18
19 class KeyEventFromKeyIdentifierTest : public testing::Test { 19 class KeyEventFromKeyIdentifierTest : public testing::Test {
20 protected: 20 protected:
21 KeyEventFromKeyIdentifierTest() 21 KeyEventFromKeyIdentifierTest()
22 : ui_thread_(BrowserThread::UI, &message_loop_) {} 22 : ui_thread_(BrowserThread::UI, &message_loop_) {}
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 }; 67 };
68 int kNumKeysWithShift = arraysize(keys_with_shift); 68 int kNumKeysWithShift = arraysize(keys_with_shift);
69 69
70 for (int i = 0; i < kNumKeysWithShift; ++i) { 70 for (int i = 0; i < kNumKeysWithShift; ++i) {
71 EXPECT_EQ(ui::EF_SHIFT_DOWN, 71 EXPECT_EQ(ui::EF_SHIFT_DOWN,
72 KeyEventFromKeyIdentifier(keys_with_shift[i]).flags()); 72 KeyEventFromKeyIdentifier(keys_with_shift[i]).flags());
73 } 73 }
74 } 74 }
75 75
76 } // namespace 76 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/extensions/key_identifier_conversion_views.cc ('k') | chrome/browser/history/redirect_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698