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

Unified Diff: webkit/tools/test_shell/text_input_controller_unittest.cc

Issue 6296015: Remove eventSender, accessibilityController, plainText and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/webkit/tools/test_shell
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/text_input_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/text_input_controller_unittest.cc
diff --git a/webkit/tools/test_shell/text_input_controller_unittest.cc b/webkit/tools/test_shell/text_input_controller_unittest.cc
deleted file mode 100644
index 94dd848fd7eacf548db98f0451ebbfccf621fe55..0000000000000000000000000000000000000000
--- a/webkit/tools/test_shell/text_input_controller_unittest.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "webkit/tools/test_shell/text_input_controller.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-// Test class to let us check TextInputController's method table.
-class TestTextInputController : public TextInputController {
- public:
- TestTextInputController() : TextInputController(NULL) {}
-
- size_t MethodCount() {
- return methods_.size();
- }
-};
-
-
-TEST(TextInputControllerTest, MethodMapIsInitialized) {
- TestTextInputController text_input_controller;
-
- EXPECT_EQ(14U, text_input_controller.MethodCount());
-
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "insertText"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "doCommand"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "setMarkedText"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "unmarkText"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "hasMarkedText"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "conversationIdentifier"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "substringFromRange"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "attributedSubstringFromRange"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "markedRange"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "selectedRange"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "firstRectForCharacterRange"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "characterIndexForPoint"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "validAttributesForMarkedText"));
- EXPECT_TRUE(text_input_controller.IsMethodRegistered(
- "makeAttributedString"));
-
- // Negative test.
- EXPECT_FALSE(text_input_controller.IsMethodRegistered(
- "momeRathsOutgrabe"));
-}
« no previous file with comments | « webkit/tools/test_shell/text_input_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698