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

Side by Side Diff: components/password_manager/core/browser/login_database_unittest.cc

Issue 2180773002: Disable broken iOS10 password manager tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simulator only Created 4 years, 5 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/password_manager/core/browser/login_database_ios_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/password_manager/core/browser/login_database.h" 5 #include "components/password_manager/core/browser/login_database.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #include "base/ios/ios_util.h"
rohitrao (ping after 24h) 2016/07/24 23:04:55 This is a cross-platform test, so this include wil
justincohen 2016/07/25 15:11:52 Done.
15 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
16 #include "base/path_service.h" 17 #include "base/path_service.h"
17 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
19 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
20 #include "base/test/histogram_tester.h" 21 #include "base/test/histogram_tester.h"
21 #include "base/time/time.h" 22 #include "base/time/time.h"
22 #include "build/build_config.h" 23 #include "build/build_config.h"
23 #include "components/autofill/core/common/password_form.h" 24 #include "components/autofill/core/common/password_form.h"
24 #include "components/os_crypt/os_crypt_mocker.h" 25 #include "components/os_crypt/os_crypt_mocker.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Clear state. 204 // Clear state.
204 db().RemoveLoginsCreatedBetween(now, base::Time()); 205 db().RemoveLoginsCreatedBetween(now, base::Time());
205 } 206 }
206 207
207 base::ScopedTempDir temp_dir_; 208 base::ScopedTempDir temp_dir_;
208 base::FilePath file_; 209 base::FilePath file_;
209 std::unique_ptr<LoginDatabase> db_; 210 std::unique_ptr<LoginDatabase> db_;
210 }; 211 };
211 212
212 TEST_F(LoginDatabaseTest, Logins) { 213 TEST_F(LoginDatabaseTest, Logins) {
214 #if TARGET_IPHONE_SIMULATOR
215 // TODO(crbug.com/619982): Broken by iOS10.
rohitrao (ping after 24h) 2016/07/24 23:04:55 I would be more specific in this comment and say t
justincohen 2016/07/25 15:11:52 Done.
216 if (base::ios::IsRunningOnIOS10OrLater()) {
217 return;
218 }
219 #endif
213 ScopedVector<autofill::PasswordForm> result; 220 ScopedVector<autofill::PasswordForm> result;
214 221
215 // Verify the database is empty. 222 // Verify the database is empty.
216 EXPECT_TRUE(db().GetAutofillableLogins(&result)); 223 EXPECT_TRUE(db().GetAutofillableLogins(&result));
217 EXPECT_EQ(0U, result.size()); 224 EXPECT_EQ(0U, result.size());
218 225
219 // Example password form. 226 // Example password form.
220 PasswordForm form; 227 PasswordForm form;
221 GenerateExamplePasswordForm(&form); 228 GenerateExamplePasswordForm(&form);
222 229
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 LoginDatabaseMigrationTest, 1662 LoginDatabaseMigrationTest,
1656 testing::Range(1, kCurrentVersionNumber + 1)); 1663 testing::Range(1, kCurrentVersionNumber + 1));
1657 INSTANTIATE_TEST_CASE_P(MigrationToVCurrent, 1664 INSTANTIATE_TEST_CASE_P(MigrationToVCurrent,
1658 LoginDatabaseMigrationTestV9, 1665 LoginDatabaseMigrationTestV9,
1659 testing::Values(9)); 1666 testing::Values(9));
1660 INSTANTIATE_TEST_CASE_P(MigrationToVCurrent, 1667 INSTANTIATE_TEST_CASE_P(MigrationToVCurrent,
1661 LoginDatabaseMigrationTestBroken, 1668 LoginDatabaseMigrationTestBroken,
1662 testing::Range(1, 4)); 1669 testing::Range(1, 4));
1663 1670
1664 } // namespace password_manager 1671 } // namespace password_manager
OLDNEW
« no previous file with comments | « components/password_manager/core/browser/login_database_ios_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698