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

Side by Side Diff: components/proximity_auth/logging/logging_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/proximity_auth/logging/logging.h ('k') | components/proximity_auth/metrics.cc » ('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/proximity_auth/logging/logging.h" 5 #include "components/proximity_auth/logging/logging.h"
6 6
7 #include <stddef.h>
8
7 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
8 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
9 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
10 #include "components/proximity_auth/logging/log_buffer.h" 12 #include "components/proximity_auth/logging/log_buffer.h"
11 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
12 14
13 namespace proximity_auth { 15 namespace proximity_auth {
14 16
15 namespace { 17 namespace {
16 18
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 PA_LOG(WARNING) << kLog2; 110 PA_LOG(WARNING) << kLog2;
109 PA_LOG(ERROR) << kLog3; 111 PA_LOG(ERROR) << kLog3;
110 112
111 ASSERT_EQ(3u, g_standard_logs.Get().size()); 113 ASSERT_EQ(3u, g_standard_logs.Get().size());
112 EXPECT_NE(std::string::npos, g_standard_logs.Get()[0].find(kLog1)); 114 EXPECT_NE(std::string::npos, g_standard_logs.Get()[0].find(kLog1));
113 EXPECT_NE(std::string::npos, g_standard_logs.Get()[1].find(kLog2)); 115 EXPECT_NE(std::string::npos, g_standard_logs.Get()[1].find(kLog2));
114 EXPECT_NE(std::string::npos, g_standard_logs.Get()[2].find(kLog3)); 116 EXPECT_NE(std::string::npos, g_standard_logs.Get()[2].find(kLog3));
115 } 117 }
116 118
117 } // namespace proximity_auth 119 } // namespace proximity_auth
OLDNEW
« no previous file with comments | « components/proximity_auth/logging/logging.h ('k') | components/proximity_auth/metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698