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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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/test/test_browser_thread.h" 10 #include "content/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/keycodes/keyboard_codes.h" 12 #include "ui/base/keycodes/keyboard_codes.h"
13 13
14 using content::BrowserThread;
15
14 namespace { 16 namespace {
15 17
16 class KeyEventFromKeyIdentifierTest : public testing::Test { 18 class KeyEventFromKeyIdentifierTest : public testing::Test {
17 protected: 19 protected:
18 KeyEventFromKeyIdentifierTest() 20 KeyEventFromKeyIdentifierTest()
19 : ui_thread_(BrowserThread::UI, &message_loop_) {} 21 : ui_thread_(BrowserThread::UI, &message_loop_) {}
20 22
21 MessageLoopForUI message_loop_; 23 MessageLoopForUI message_loop_;
22 content::TestBrowserThread ui_thread_; 24 content::TestBrowserThread ui_thread_;
23 }; 25 };
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 }; 66 };
65 int kNumKeysWithShift = arraysize(keys_with_shift); 67 int kNumKeysWithShift = arraysize(keys_with_shift);
66 68
67 for (int i = 0; i < kNumKeysWithShift; ++i) { 69 for (int i = 0; i < kNumKeysWithShift; ++i) {
68 EXPECT_EQ(ui::EF_SHIFT_DOWN, 70 EXPECT_EQ(ui::EF_SHIFT_DOWN,
69 KeyEventFromKeyIdentifier(keys_with_shift[i]).flags()); 71 KeyEventFromKeyIdentifier(keys_with_shift[i]).flags());
70 } 72 }
71 } 73 }
72 74
73 } // namespace 75 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/extensions/key_identifier_conversion_views.cc ('k') | chrome/browser/extensions/network_delay_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698