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

Unified Diff: trunk/src/chromeos/ime/input_method_whitelist_unittest.cc

Issue 12453021: Revert 190596 "Extract input_method_whitelist.{h|cc} from c/b/ch..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 9 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 | « trunk/src/chromeos/ime/input_method_whitelist.cc ('k') | trunk/src/chromeos/ime/input_methods.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chromeos/ime/input_method_whitelist_unittest.cc
===================================================================
--- trunk/src/chromeos/ime/input_method_whitelist_unittest.cc (revision 190642)
+++ trunk/src/chromeos/ime/input_method_whitelist_unittest.cc (working copy)
@@ -1,32 +0,0 @@
-// Copyright (c) 2012 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 "base/logging.h"
-#include "chromeos/ime/input_method_whitelist.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace chromeos {
-namespace input_method {
-
-namespace {
-
-class InputMethodWhitelistTest : public testing::Test {
- protected:
- const InputMethodWhitelist whitelist_;
-};
-
-} // namespace
-
-TEST_F(InputMethodWhitelistTest, TestInputMethodIdIsWhitelisted) {
- EXPECT_TRUE(whitelist_.InputMethodIdIsWhitelisted("mozc"));
- EXPECT_TRUE(whitelist_.InputMethodIdIsWhitelisted("xkb:us:dvorak:eng"));
- EXPECT_FALSE(whitelist_.InputMethodIdIsWhitelisted("mozc,"));
- EXPECT_FALSE(whitelist_.InputMethodIdIsWhitelisted("mozc,xkb:us:dvorak:eng"));
- EXPECT_FALSE(whitelist_.InputMethodIdIsWhitelisted("not-supported-id"));
- EXPECT_FALSE(whitelist_.InputMethodIdIsWhitelisted(","));
- EXPECT_FALSE(whitelist_.InputMethodIdIsWhitelisted(""));
-}
-
-} // namespace input_method
-} // namespace chromeos
« no previous file with comments | « trunk/src/chromeos/ime/input_method_whitelist.cc ('k') | trunk/src/chromeos/ime/input_methods.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698