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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingCommandTest.cpp

Issue 2085873002: Add test for TextEditCommandAuraLinux::GetCommandString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor8_unify_text_edit_commands
Patch Set: -- Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 "core/editing/EditingTestBase.h" 5 #include "core/editing/EditingTestBase.h"
6 #include "core/editing/Editor.h" 6 #include "core/editing/Editor.h"
7 #include "core/editing/commands/EditorCommandNames.h"
8 #include "core/frame/LocalFrame.h" 7 #include "core/frame/LocalFrame.h"
9 #include "public/platform/WebEditingCommandType.h" 8 #include "public/platform/WebEditingCommandType.h"
9 #include "public/platform/WebEditorCommandNames.h"
10 #include "wtf/StringExtras.h" 10 #include "wtf/StringExtras.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 namespace { 14 namespace {
15 15
16 struct CommandNameEntry { 16 struct CommandNameEntry {
17 const char* name; 17 const char* name;
18 WebEditingCommandType type; 18 WebEditingCommandType type;
19 }; 19 };
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "12345", 65 "12345",
66 }; 66 };
67 Editor& dummyEditor = document().frame()->editor(); 67 Editor& dummyEditor = document().frame()->editor();
68 for (const auto& commandName : kInvalidCommandName) { 68 for (const auto& commandName : kInvalidCommandName) {
69 Editor::Command command = dummyEditor.createCommand(commandName); 69 Editor::Command command = dummyEditor.createCommand(commandName);
70 EXPECT_EQ(0, command.idForHistogram()); 70 EXPECT_EQ(0, command.idForHistogram());
71 } 71 }
72 } 72 }
73 73
74 } // namespace blink 74 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698