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

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

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
« no previous file with comments | « components/rappor/rappor_prefs.h ('k') | components/rappor/rappor_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/rappor/rappor_prefs.h" 5 #include "components/rappor/rappor_prefs.h"
6 6
7 #include <stdint.h>
8
7 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/macros.h"
8 #include "base/prefs/testing_pref_service.h" 11 #include "base/prefs/testing_pref_service.h"
9 #include "base/test/histogram_tester.h" 12 #include "base/test/histogram_tester.h"
10 #include "components/rappor/byte_vector_utils.h" 13 #include "components/rappor/byte_vector_utils.h"
11 #include "components/rappor/proto/rappor_metric.pb.h" 14 #include "components/rappor/proto/rappor_metric.pb.h"
12 #include "components/rappor/rappor_pref_names.h" 15 #include "components/rappor/rappor_pref_names.h"
13 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
14 17
15 namespace rappor { 18 namespace rappor {
16 19
17 namespace internal { 20 namespace internal {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 tester_.ExpectUniqueSample(kLoadSecretHistogramName, LOAD_CORRUPT_VALUE, 1); 130 tester_.ExpectUniqueSample(kLoadSecretHistogramName, LOAD_CORRUPT_VALUE, 1);
128 EXPECT_NE(secret1, secret2); 131 EXPECT_NE(secret1, secret2);
129 EXPECT_EQ(HmacByteVectorGenerator::kEntropyInputSize, secret2.size()); 132 EXPECT_EQ(HmacByteVectorGenerator::kEntropyInputSize, secret2.size());
130 // The stored preference should also be updated. 133 // The stored preference should also be updated.
131 ExpectConsistentSecret(test_prefs_, secret2); 134 ExpectConsistentSecret(test_prefs_, secret2);
132 } 135 }
133 136
134 } // namespace internal 137 } // namespace internal
135 138
136 } // namespace rappor 139 } // namespace rappor
OLDNEW
« no previous file with comments | « components/rappor/rappor_prefs.h ('k') | components/rappor/rappor_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698