Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: components/rappor/rappor_service_unittest.cc

Issue 188103004: C++ Readability review for holte (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Change for readability
6
5 #include "components/rappor/rappor_service.h" 7 #include "components/rappor/rappor_service.h"
6 8
7 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
8 10
9 namespace rappor { 11 namespace rappor {
10 12
11 class TestRapporService : public RapporService { 13 class TestRapporService : public RapporService {
12 public: 14 public:
13 void GetReports(RapporReports* reports) { 15 void GetReports(RapporReports* reports) {
14 ExportMetrics(reports); 16 ExportMetrics(reports);
(...skipping 26 matching lines...) Expand all
41 RapporReports reports; 43 RapporReports reports;
42 rappor_service.GetReports(&reports); 44 rappor_service.GetReports(&reports);
43 EXPECT_EQ(1, reports.report_size()); 45 EXPECT_EQ(1, reports.report_size());
44 46
45 const RapporReports::Report& report = reports.report(0); 47 const RapporReports::Report& report = reports.report(0);
46 EXPECT_TRUE(report.name_hash()); 48 EXPECT_TRUE(report.name_hash());
47 EXPECT_EQ(16u, report.bits().size()); 49 EXPECT_EQ(16u, report.bits().size());
48 } 50 }
49 51
50 } // namespace rappor 52 } // namespace rappor
OLDNEW
« components/rappor/rappor_service.h ('K') | « components/rappor/rappor_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698