Index: chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc |
diff --git a/chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc b/chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc |
index ad933ea254238d13d46a32fc32951bce40471747..7781c26b44c7a8deb521accc9843333f2dd28501 100644 |
--- a/chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc |
+++ b/chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc |
@@ -15,6 +15,7 @@ |
#include "chrome/test/base/testing_profile.h" |
#include "components/spellcheck/common/spellcheck_marker.h" |
#include "components/spellcheck/common/spellcheck_messages.h" |
+#include "components/spellcheck/spellcheck_build_features.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
#include "ipc/ipc_message.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -34,7 +35,7 @@ class TestingSpellCheckMessageFilter : public SpellCheckMessageFilter { |
return spellcheck_.get(); |
} |
-#if !defined(USE_BROWSER_SPELLCHECKER) |
+#if !BUILDFLAG(USE_BROWSER_SPELLCHECKER) |
void OnTextCheckComplete(int route_id, |
int identifier, |
const std::vector<SpellCheckMarker>& markers, |
@@ -63,7 +64,7 @@ TEST(SpellCheckMessageFilterTest, TestOverrideThread) { |
SpellCheckHostMsg_RequestDictionary::ID, |
SpellCheckHostMsg_NotifyChecked::ID, |
SpellCheckHostMsg_RespondDocumentMarkers::ID, |
-#if !defined(USE_BROWSER_SPELLCHECKER) |
+#if !BUILDFLAG(USE_BROWSER_SPELLCHECKER) |
SpellCheckHostMsg_CallSpellingService::ID, |
#endif |
}; |
@@ -80,7 +81,7 @@ TEST(SpellCheckMessageFilterTest, TestOverrideThread) { |
} |
} |
-#if !defined(USE_BROWSER_SPELLCHECKER) |
+#if !BUILDFLAG(USE_BROWSER_SPELLCHECKER) |
TEST(SpellCheckMessageFilterTest, OnTextCheckCompleteTestCustomDictionary) { |
static const std::string kCustomWord = "Helllo"; |
static const int kRouteId = 0; |