OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <limits> | 5 #include <limits> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "app/sql/statement.h" | |
9 #include "base/file_util.h" | 8 #include "base/file_util.h" |
10 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
11 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
13 #include "chrome/browser/password_manager/encryptor.h" | 12 #include "chrome/browser/password_manager/encryptor.h" |
14 #include "chrome/browser/sync/syncable/directory_manager.h" | 13 #include "chrome/browser/sync/syncable/directory_manager.h" |
15 #include "chrome/browser/sync/util/user_settings.h" | 14 #include "chrome/browser/sync/util/user_settings.h" |
| 15 #include "sql/statement.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 using std::numeric_limits; | 18 using std::numeric_limits; |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const FilePath::CharType kV10UserSettingsDB[] = | 22 const FilePath::CharType kV10UserSettingsDB[] = |
23 FILE_PATH_LITERAL("Version10Settings.sqlite3"); | 23 FILE_PATH_LITERAL("Version10Settings.sqlite3"); |
24 const FilePath::CharType kV11UserSettingsDB[] = | 24 const FilePath::CharType kV11UserSettingsDB[] = |
25 FILE_PATH_LITERAL("Version11Settings.sqlite3"); | 25 FILE_PATH_LITERAL("Version11Settings.sqlite3"); |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 std::string token; | 272 std::string token; |
273 ASSERT_TRUE(settings.GetLastUserAndServiceToken("service", &username, | 273 ASSERT_TRUE(settings.GetLastUserAndServiceToken("service", &username, |
274 &token)); | 274 &token)); |
275 EXPECT_EQ( | 275 EXPECT_EQ( |
276 "oonetuhasonteuhasonetuhasonetuhasonetuhasouhasonetuhasonetuhasonetuhah" | 276 "oonetuhasonteuhasonetuhasonetuhasonetuhasouhasonetuhasonetuhasonetuhah" |
277 "oonetuhasonteuhasonetuhasonetuhasonetuhasouhasonetuhasonetuhasonetuhah" | 277 "oonetuhasonteuhasonetuhasonetuhasonetuhasouhasonetuhasonetuhasonetuhah" |
278 "oonetuhasonteuhasonetuhasonetuhasonetuhasouhasonetuhasonetuhasonetuhah", | 278 "oonetuhasonteuhasonetuhasonetuhasonetuhasouhasonetuhasonetuhasonetuhah", |
279 token); | 279 token); |
280 EXPECT_EQ("username", username); | 280 EXPECT_EQ("username", username); |
281 } | 281 } |
OLD | NEW |