Index: components/translate/core/browser/mock_translate_client.h |
diff --git a/components/translate/core/browser/mock_translate_client.h b/components/translate/core/browser/mock_translate_client.h |
index bf972ebbe9a25bd854fb1aadf8d11248e56f6f86..0f364e62c9e2bb7a26f7c68e949c189e870e0dab 100644 |
--- a/components/translate/core/browser/mock_translate_client.h |
+++ b/components/translate/core/browser/mock_translate_client.h |
@@ -10,6 +10,7 @@ |
#include "base/memory/ptr_util.h" |
#include "components/infobars/core/infobar.h" |
+#include "components/metrics/proto/translate_event.pb.h" |
#include "components/translate/core/browser/translate_client.h" |
#include "components/translate/core/browser/translate_driver.h" |
#include "components/translate/core/browser/translate_prefs.h" |
@@ -36,6 +37,7 @@ class MockTranslateClient : public TranslateClient { |
MOCK_METHOD0(GetTranslateAcceptLanguages, TranslateAcceptLanguages*()); |
MOCK_CONST_METHOD0(GetInfobarIconID, int()); |
+ MOCK_METHOD1(RecordTranslateEvent, void(const metrics::TranslateEventProto&)); |
#if !defined(USE_AURA) |
MOCK_CONST_METHOD1(CreateInfoBarMock, |