custom_dictionary_engine_unittest.cc revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
1// Copyright (c) 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4#include "chrome/renderer/spellchecker/custom_dictionary_engine.h" 5 6#include "testing/gtest/include/gtest/gtest.h" 7 8TEST(CustomDictionaryTest, HandlesEmptyWordWithInvalidSubstring) { 9 CustomDictionaryEngine engine; 10 std::vector<std::string> custom_words; 11 12 engine.Init(custom_words); 13 EXPECT_FALSE(engine.SpellCheckWord(string16().c_str(), 15, 23)); 14} 15 16