OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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. |
| 4 |
| 5 #include "components/rappor/rappor_reporter.h" |
| 6 #include "components/rappor/rappor.h" |
| 7 |
| 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 |
| 10 namespace rappor { |
| 11 |
| 12 TEST(RapporReporterTest, TestReporter) { |
| 13 RapporReporter reporter("MySecret"); |
| 14 Rappor rappor("MyRappor", 16, 4, 4, 2, 4, 2); |
| 15 |
| 16 std::vector<uint8_t> report = reporter.GetReport(rappor); |
| 17 ASSERT_EQ(16u, report.size()); |
| 18 } |
| 19 |
| 20 } // namespace rappor |
OLD | NEW |