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

Side by Side Diff: chrome/browser/internal_auth_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "chrome/browser/internal_auth.h" 5 #include "chrome/browser/internal_auth.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
10 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
11 #include "base/time/time.h" 13 #include "base/time/time.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 15
14 namespace chrome { 16 namespace chrome {
15 17
16 class InternalAuthTest : public ::testing::Test { 18 class InternalAuthTest : public ::testing::Test {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 179
178 token = InternalAuthGeneration::GeneratePassport("zapata", map); 180 token = InternalAuthGeneration::GeneratePassport("zapata", map);
179 ASSERT_GT(token.size(), 10u); 181 ASSERT_GT(token.size(), 10u);
180 for (int i = 20; i--;) 182 for (int i = 20; i--;)
181 InternalAuthGeneration::GenerateNewKey(); 183 InternalAuthGeneration::GenerateNewKey();
182 // Passport should not survive series of key changes. 184 // Passport should not survive series of key changes.
183 ASSERT_FALSE(InternalAuthVerification::VerifyPassport(token, "zapata", map)); 185 ASSERT_FALSE(InternalAuthVerification::VerifyPassport(token, "zapata", map));
184 } 186 }
185 187
186 } // namespace chrome 188 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/internal_auth.cc ('k') | chrome/browser/interstitials/chrome_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698