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

Side by Side Diff: content/browser/renderer_host/gtk_key_bindings_handler_unittest.cc

Issue 11231077: Move a bunch more 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
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 "content/browser/renderer_host/gtk_key_bindings_handler.h" 5 #include "content/browser/renderer_host/gtk_key_bindings_handler.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "content/common/edit_command.h" 17 #include "content/common/edit_command.h"
18 #include "content/public/browser/native_web_keyboard_event.h" 18 #include "content/public/browser/native_web_keyboard_event.h"
19 #include "content/public/common/content_paths.h" 19 #include "content/public/common/content_paths.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 using content::EditCommand;
23 using content::EditCommands;
22 using content::NativeWebKeyboardEvent; 24 using content::NativeWebKeyboardEvent;
23 25
24 class GtkKeyBindingsHandlerTest : public testing::Test { 26 class GtkKeyBindingsHandlerTest : public testing::Test {
25 protected: 27 protected:
26 struct EditCommand { 28 struct EditCommand {
27 const char* name; 29 const char* name;
28 const char* value; 30 const char* value;
29 }; 31 };
30 32
31 GtkKeyBindingsHandlerTest() 33 GtkKeyBindingsHandlerTest()
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 }; 217 };
216 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_8, GDK_CONTROL_MASK), 218 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_8, GDK_CONTROL_MASK),
217 kSelectAll, arraysize(kSelectAll)); 219 kSelectAll, arraysize(kSelectAll));
218 220
219 static const EditCommand kSetAnchor[] = { 221 static const EditCommand kSetAnchor[] = {
220 { "SetMark", "" } 222 { "SetMark", "" }
221 }; 223 };
222 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_9, GDK_CONTROL_MASK), 224 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_9, GDK_CONTROL_MASK),
223 kSetAnchor, arraysize(kSetAnchor)); 225 kSetAnchor, arraysize(kSetAnchor));
224 } 226 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gtk_key_bindings_handler.cc ('k') | content/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698