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"
15 bool MockIsIncognito() {
21 TestRapporService::TestRapporService()
22 : RapporService(&prefs_
, base::Bind(&MockIsIncognito
)) {
24 HmacByteVectorGenerator::GenerateEntropyInput(),
28 TestRapporService::~TestRapporService() {}
30 int TestRapporService::GetReportsCount() {
31 RapporReports reports
;
32 ExportMetrics(&reports
);
33 return reports
.report_size();