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

Unified Diff: components/translate/core/browser/translate_ui_delegate_unittest.cc

Issue 2913593002: Implementation of translation event logging. (Closed)
Patch Set: fix Created 3 years, 7 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/translate/core/browser/translate_ui_delegate_unittest.cc
diff --git a/components/translate/core/browser/translate_ui_delegate_unittest.cc b/components/translate/core/browser/translate_ui_delegate_unittest.cc
index eb15170e55d6d0d457cdfff062c7269a5a00357d..5d0eb460789e4c26b8d0fd968c87bfd9f78e76d6 100644
--- a/components/translate/core/browser/translate_ui_delegate_unittest.cc
+++ b/components/translate/core/browser/translate_ui_delegate_unittest.cc
@@ -11,6 +11,7 @@
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "components/infobars/core/infobar.h"
+#include "components/metrics/proto/translate_event.pb.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/translate/core/browser/mock_translate_driver.h"
@@ -53,6 +54,8 @@ class MockTranslateClient : public TranslateClient {
MOCK_METHOD0(GetTranslateAcceptLanguages, TranslateAcceptLanguages*());
MOCK_CONST_METHOD0(GetInfobarIconID, int());
+ MOCK_METHOD1(RecordTranslateEvent, void(const metrics::TranslateEventProto&));
+
MOCK_CONST_METHOD1(CreateInfoBarMock,
infobars::InfoBar*(TranslateInfoBarDelegate*));
std::unique_ptr<infobars::InfoBar> CreateInfoBar(

Powered by Google App Engine
This is Rietveld 408576698