Hook the WebThreadImplForMessageLoop up to post taks through the blink
[chromium-blink-merge.git] / components / rappor / test_rappor_service.cc
blob290403bfc20abd643e5e46384dbd197296768015
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"
11 namespace rappor {
13 TestRapporService::TestRapporService()
14 : RapporService(&prefs_) {
15 Initialize(0,
16 HmacByteVectorGenerator::GenerateEntropyInput(),
17 FINE_LEVEL);
20 TestRapporService::~TestRapporService() {}
22 int TestRapporService::GetReportsCount() {
23 RapporReports reports;
24 ExportMetrics(&reports);
25 return reports.report_size();
28 } // namespace rappor