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

Unified Diff: components/translate/core/browser/mock_translate_client.h

Issue 2913593002: Implementation of translation event logging. (Closed)
Patch Set: fix Created 3 years, 6 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
« no previous file with comments | « components/translate/DEPS ('k') | components/translate/core/browser/translate_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « components/translate/DEPS ('k') | components/translate/core/browser/translate_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698