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

Side by Side Diff: chrome/browser/signin/local_auth_unittest.cc

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/signin/local_auth.h" 5 #include "chrome/browser/signin/local_auth.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/profiles/profile_attributes_entry.h" 11 #include "chrome/browser/profiles/profile_attributes_entry.h"
12 #include "chrome/browser/profiles/profile_attributes_storage.h" 12 #include "chrome/browser/profiles/profile_attributes_storage.h"
13 #include "chrome/test/base/testing_browser_process.h" 13 #include "chrome/test/base/testing_browser_process.h"
14 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 #include "chrome/test/base/testing_profile_manager.h" 15 #include "chrome/test/base/testing_profile_manager.h"
16 #include "components/os_crypt/os_crypt_mocker.h" 16 #include "components/os_crypt/os_crypt_mocker.h"
17 #include "components/prefs/pref_service.h" 17 #include "components/prefs/pref_service.h"
18 #include "components/syncable_prefs/testing_pref_service_syncable.h" 18 #include "components/sync_preferences/testing_pref_service_syncable.h"
19 #include "content/public/test/test_browser_thread_bundle.h" 19 #include "content/public/test/test_browser_thread_bundle.h"
20 20
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 class LocalAuthTest : public testing::Test { 23 class LocalAuthTest : public testing::Test {
24 public: 24 public:
25 LocalAuthTest() { OSCryptMocker::SetUpWithSingleton(); } 25 LocalAuthTest() { OSCryptMocker::SetUpWithSingleton(); }
26 26
27 ~LocalAuthTest() override { OSCryptMocker::TearDown(); } 27 ~LocalAuthTest() override { OSCryptMocker::TearDown(); }
28 28
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 TEST_F(LocalAuthTest, TruncateStringUnevenly) { 110 TEST_F(LocalAuthTest, TruncateStringUnevenly) {
111 std::string two_chars = "Az"; 111 std::string two_chars = "Az";
112 std::string three_chars = "AzC"; 112 std::string three_chars = "AzC";
113 // 'z' = 0x7A, ':' = 0x3A. 113 // 'z' = 0x7A, ':' = 0x3A.
114 std::string two_chars_truncated = "A:"; 114 std::string two_chars_truncated = "A:";
115 EXPECT_EQ(two_chars_truncated, 115 EXPECT_EQ(two_chars_truncated,
116 LocalAuth::TruncateStringByBits(two_chars, 14)); 116 LocalAuth::TruncateStringByBits(two_chars, 14));
117 EXPECT_EQ(two_chars_truncated, 117 EXPECT_EQ(two_chars_truncated,
118 LocalAuth::TruncateStringByBits(three_chars, 14)); 118 LocalAuth::TruncateStringByBits(three_chars, 14));
119 } 119 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_service_unittest_chromeos.cc ('k') | chrome/browser/signin/signin_global_error_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698