| OLD | NEW |
| 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" | 7 #include "core/editing/commands/EditorCommandNames.h" |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "platform/wtf/StringExtras.h" |
| 9 #include "public/platform/WebEditingCommandType.h" | 10 #include "public/platform/WebEditingCommandType.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 }; |
| 20 | 20 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 "", "iNvAlId", "12345", | 68 "", "iNvAlId", "12345", |
| 69 }; | 69 }; |
| 70 Editor& dummy_editor = GetDocument().GetFrame()->GetEditor(); | 70 Editor& dummy_editor = GetDocument().GetFrame()->GetEditor(); |
| 71 for (const auto& command_name : kInvalidCommandName) { | 71 for (const auto& command_name : kInvalidCommandName) { |
| 72 Editor::Command command = dummy_editor.CreateCommand(command_name); | 72 Editor::Command command = dummy_editor.CreateCommand(command_name); |
| 73 EXPECT_EQ(0, command.IdForHistogram()); | 73 EXPECT_EQ(0, command.IdForHistogram()); |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| OLD | NEW |