OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_TEST_EVENT_UTIL_H_ | |
6 #define COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_TEST_EVENT_UTIL_H_ | |
7 | |
8 #include "components/feature_engagement_tracker/internal/proto/event.pb.h" | |
nyquist
2017/05/11 17:08:03
Nit: Could you forward declare Event instead?
David Trainor- moved to gerrit
2017/05/11 19:30:28
Done.
| |
9 | |
10 namespace feature_engagement_tracker { | |
11 namespace test { | |
12 | |
13 // Adds an Event count entry for |event|. | |
14 void SetEventCountForDay(Event* event, uint32_t day, uint32_t count); | |
nyquist
2017/05/11 17:08:03
Nit: Missing #include "<stdint.h>"
David Trainor- moved to gerrit
2017/05/11 19:30:28
Done.
| |
15 | |
16 // Verifies that the given |event| contains a |day| with the correct |count|, | |
17 // and that the day only exists a single time. | |
18 void VerifyEventCount(const Event* event, uint32_t day, uint32_t count); | |
19 | |
20 // Verifies that the event |a| and |b| contain the exact same data. | |
21 void VerifyEventsEqual(const Event* a, const Event* b); | |
22 | |
23 } // namespace test | |
24 } // namespace feature_engagement_tracker | |
25 | |
26 #endif // COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_TEST_EVENT_UTIL_H_ | |
OLD | NEW |