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

Unified Diff: chromeos/components/tether/mock_host_connection_metrics_logger.h

Issue 2949343002: Tether: record each type of host connection result. (Closed)
Patch Set: Fix crash. Created 3 years, 5 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: chromeos/components/tether/mock_host_connection_metrics_logger.h
diff --git a/chromeos/components/tether/mock_host_connection_metrics_logger.h b/chromeos/components/tether/mock_host_connection_metrics_logger.h
new file mode 100644
index 0000000000000000000000000000000000000000..569c05fffcb2294f57acc622d668e642aa13db5c
--- /dev/null
+++ b/chromeos/components/tether/mock_host_connection_metrics_logger.h
@@ -0,0 +1,31 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_CONNECTION_METRICS_LOGGER_H_
+#define CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_CONNECTION_METRICS_LOGGER_H_
+
+#include "chromeos/components/tether/host_connection_metrics_logger.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromeos {
+
+namespace tether {
+
+class MockHostConnectionMetricsLogger : public HostConnectionMetricsLogger {
+ public:
+ MockHostConnectionMetricsLogger();
+ ~MockHostConnectionMetricsLogger() override;
+
+ MOCK_METHOD1(RecordConnectionToHostResult,
+ void(HostConnectionMetricsLogger::ConnectionToHostResult));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockHostConnectionMetricsLogger);
+};
+
+} // namespace tether
+
+} // namespace chromeos
+
+#endif // CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_CONNECTION_METRICS_LOGGER_H_
« no previous file with comments | « chromeos/components/tether/initializer.cc ('k') | chromeos/components/tether/mock_host_connection_metrics_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698