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

Side by Side Diff: components/feature_engagement_tracker/internal/test/event_util.h

Issue 2876633002: Add a PersistentStore to FeatureEngagementTracker (Closed)
Patch Set: Fix deps 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 unified diff | Download patch
OLDNEW
(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 <stdint.h>
9
10 namespace feature_engagement_tracker {
11
12 class Event;
13
14 namespace test {
15
16 // Adds an Event count entry for |event|.
17 void SetEventCountForDay(Event* event, uint32_t day, uint32_t count);
18
19 // Verifies that the given |event| contains a |day| with the correct |count|,
20 // and that the day only exists a single time.
21 void VerifyEventCount(const Event* event, uint32_t day, uint32_t count);
22
23 // Verifies that the event |a| and |b| contain the exact same data.
24 void VerifyEventsEqual(const Event* a, const Event* b);
25
26 } // namespace test
27 } // namespace feature_engagement_tracker
28
29 #endif // COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_TEST_EVENT_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698