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

Unified Diff: components/rappor/test_rappor_service.h

Issue 2492793004: Add TimeToScrollUpdateSwapBegin2 in RAPPOR (Closed)
Patch Set: add tests Created 4 years 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 | « no previous file | components/rappor/test_rappor_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/test_rappor_service.h
diff --git a/components/rappor/test_rappor_service.h b/components/rappor/test_rappor_service.h
index a323c78292d74f7fcc612513edc9f849485f3ead..9e0552fcaeecdf5278e3fca9cd1fd623a6039e2a 100644
--- a/components/rappor/test_rappor_service.h
+++ b/components/rappor/test_rappor_service.h
@@ -33,6 +33,10 @@ class TestSample : public Sample {
uint64_t flags,
size_t num_flags) override;
+ void SetUInt64Field(const std::string& field_name,
+ uint64_t value,
+ NoiseLevel noise_level) override;
+
struct Shadow {
explicit Shadow(RapporType type);
Shadow(const Shadow& other);
@@ -40,6 +44,7 @@ class TestSample : public Sample {
RapporType type;
std::map<std::string, uint64_t> flag_fields;
std::map<std::string, std::string> string_fields;
+ std::map<std::string, std::pair<std::uint64_t, NoiseLevel>> uint64_fields;
};
Shadow GetShadow() { return shadow_; }
« no previous file with comments | « no previous file | components/rappor/test_rappor_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698