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

Unified Diff: counter_mock.h

Issue 3171023: Add weekly crash counters, refactor metrics_daemon, respect opt-in in library. (Closed) Base URL: http://src.chromium.org/git/metrics.git
Patch Set: Respond to review Created 10 years, 4 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 | « counter.cc ('k') | counter_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: counter_mock.h
diff --git a/counter_mock.h b/counter_mock.h
index 701cce48eed923fd21ee14745961683440ecedb2..cf2a486c19314e21d9aedb98706f8060e4809e87 100644
--- a/counter_mock.h
+++ b/counter_mock.h
@@ -13,7 +13,7 @@
namespace chromeos_metrics {
-class TaggedCounterMock : public TaggedCounterInterface {
+class TaggedCounterMock : public TaggedCounter {
public:
MOCK_METHOD3(Init, void(const char* filename,
Reporter reporter, void* reporter_handle));
@@ -21,6 +21,17 @@ class TaggedCounterMock : public TaggedCounterInterface {
MOCK_METHOD0(Flush, void());
};
+class TaggedCounterReporterMock : public TaggedCounterReporter {
+ public:
+ MOCK_METHOD5(Init, void(const char* filename,
+ const char* histogram_name,
+ int min,
+ int max,
+ int nbuckets));
+ MOCK_METHOD2(Update, void(int32 tag, int32 count));
+ MOCK_METHOD0(Flush, void());
+};
+
class FrequencyCounterMock : public FrequencyCounter {
public:
MOCK_METHOD4(Init, void(const char* filename,
@@ -28,6 +39,7 @@ class FrequencyCounterMock : public FrequencyCounter {
void* reporter_handle,
time_t cycle_duration));
MOCK_METHOD1(Update, void(int32 count));
+ MOCK_METHOD0(FlushFinishedCycles, void());
};
} // namespace chromeos_metrics
« no previous file with comments | « counter.cc ('k') | counter_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698