blob: 290403bfc20abd643e5e46384dbd197296768015 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/rappor/test_rappor_service.h"
#include "components/rappor/byte_vector_utils.h"
#include "components/rappor/proto/rappor_metric.pb.h"
#include "components/rappor/rappor_parameters.h"
namespace rappor {
TestRapporService::TestRapporService()
: RapporService(&prefs_) {
Initialize(0,
HmacByteVectorGenerator::GenerateEntropyInput(),
FINE_LEVEL);
}
TestRapporService::~TestRapporService() {}
int TestRapporService::GetReportsCount() {
RapporReports reports;
ExportMetrics(&reports);
return reports.report_size();
}
} // namespace rappor