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

Side by Side Diff: content/test/mock_keyboard.cc

Issue 11346016: Move remaining content test code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « content/test/mock_keyboard.h ('k') | content/test/mock_keyboard_driver_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/test/mock_keyboard.h" 5 #include "content/test/mock_keyboard.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content {
10
9 MockKeyboard::MockKeyboard() 11 MockKeyboard::MockKeyboard()
10 : keyboard_layout_(LAYOUT_NULL), 12 : keyboard_layout_(LAYOUT_NULL),
11 keyboard_modifiers_(INVALID) { 13 keyboard_modifiers_(INVALID) {
12 } 14 }
13 15
14 MockKeyboard::~MockKeyboard() { 16 MockKeyboard::~MockKeyboard() {
15 } 17 }
16 18
17 int MockKeyboard::GetCharacters(Layout layout, 19 int MockKeyboard::GetCharacters(Layout layout,
18 int key_code, 20 int key_code,
(...skipping 19 matching lines...) Expand all
38 keyboard_modifiers_ = modifiers; 40 keyboard_modifiers_ = modifiers;
39 } 41 }
40 42
41 // Retrieve Unicode characters associate with the key code. 43 // Retrieve Unicode characters associate with the key code.
42 return driver_.GetCharacters(key_code, output); 44 return driver_.GetCharacters(key_code, output);
43 #else 45 #else
44 NOTIMPLEMENTED(); 46 NOTIMPLEMENTED();
45 return -1; 47 return -1;
46 #endif 48 #endif
47 } 49 }
50
51 } // namespace content
OLDNEW
« no previous file with comments | « content/test/mock_keyboard.h ('k') | content/test/mock_keyboard_driver_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698