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

Unified Diff: components/spellcheck/renderer/spellcheck_unittest.cc

Issue 2198143002: Componentize spellcheck [3]: move renderer/ files to component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix formatting Created 4 years, 4 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
Index: components/spellcheck/renderer/spellcheck_unittest.cc
diff --git a/chrome/renderer/spellchecker/spellcheck_unittest.cc b/components/spellcheck/renderer/spellcheck_unittest.cc
similarity index 99%
rename from chrome/renderer/spellchecker/spellcheck_unittest.cc
rename to components/spellcheck/renderer/spellcheck_unittest.cc
index 527516bd023f85d6ef8b7b653250636586f41998..96c5d1cbbd5e6f76e663e75fe91cd62d70bbbfde 100644
--- a/chrome/renderer/spellchecker/spellcheck_unittest.cc
+++ b/components/spellcheck/renderer/spellcheck_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/renderer/spellchecker/spellcheck.h"
+#include "components/spellcheck/renderer/spellcheck.h"
#include <stddef.h>
@@ -18,10 +18,11 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
-#include "chrome/renderer/spellchecker/hunspell_engine.h"
-#include "chrome/renderer/spellchecker/spellcheck_language.h"
#include "components/spellcheck/common/spellcheck_common.h"
#include "components/spellcheck/common/spellcheck_result.h"
+#include "components/spellcheck/renderer/hunspell_engine.h"
+#include "components/spellcheck/renderer/spellcheck_language.h"
+#include "components/test_runner/test_common.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/WebVector.h"
#include "third_party/WebKit/public/web/WebTextCheckingCompletion.h"
@@ -49,6 +50,7 @@ base::FilePath GetHunspellDirectory() {
class SpellCheckTest : public testing::Test {
public:
SpellCheckTest() {
+ test_runner::EnsureBlinkInitialized();
groby-ooo-7-16 2016/08/03 17:31:54 See above :)
timvolodine 2016/08/03 19:12:30 same answer ;)
ReinitializeSpellCheck("en-US");
}

Powered by Google App Engine
This is Rietveld 408576698