1 // Copyright 2014 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.
5 #include "components/rappor/test_rappor_service.h"
7 #include "components/rappor/byte_vector_utils.h"
8 #include "components/rappor/proto/rappor_metric.pb.h"
9 #include "components/rappor/rappor_parameters.h"
13 TestRapporService::TestRapporService()
14 : RapporService(&prefs_
) {
16 HmacByteVectorGenerator::GenerateEntropyInput(),
20 TestRapporService::~TestRapporService() {}
22 int TestRapporService::GetReportsCount() {
23 RapporReports reports
;
24 ExportMetrics(&reports
);
25 return reports
.report_size();