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

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

Issue 2495193003: Convert spellcheck to a buildflag header. (Closed)
Patch Set: Comment Created 4 years, 1 month 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_provider_test.cc
diff --git a/components/spellcheck/renderer/spellcheck_provider_test.cc b/components/spellcheck/renderer/spellcheck_provider_test.cc
index 71a6c6d07ad825bea2acea48d3a80c411a72c548..de8c01689c47a16cc18501d6061fa23c30a940fc 100644
--- a/components/spellcheck/renderer/spellcheck_provider_test.cc
+++ b/components/spellcheck/renderer/spellcheck_provider_test.cc
@@ -8,6 +8,7 @@
#include "components/spellcheck/common/spellcheck_marker.h"
#include "components/spellcheck/common/spellcheck_messages.h"
#include "components/spellcheck/renderer/spellcheck.h"
+#include "components/spellcheck/spellcheck_build_features.h"
#include "ipc/ipc_message_macros.h"
class MockSpellcheck: public SpellCheck {
@@ -46,7 +47,7 @@ TestingSpellCheckProvider::~TestingSpellCheckProvider() {
}
bool TestingSpellCheckProvider::Send(IPC::Message* message) {
-#if !defined(USE_BROWSER_SPELLCHECKER)
+#if !BUILDFLAG(USE_BROWSER_SPELLCHECKER)
// Call our mock message handlers.
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(TestingSpellCheckProvider, *message)
@@ -69,7 +70,7 @@ void TestingSpellCheckProvider::OnCallSpellingService(int route_id,
int identifier,
const base::string16& text,
const std::vector<SpellCheckMarker>& markers) {
-#if defined (USE_BROWSER_SPELLCHECKER)
+#if BUILDFLAG(USE_BROWSER_SPELLCHECKER)
NOTREACHED();
#else
++spelling_service_call_count_;
« no previous file with comments | « components/spellcheck/renderer/spellcheck_provider.cc ('k') | components/spellcheck/spellcheck_build_features.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698