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

Side by Side Diff: chrome/browser/password_manager/password_store_x_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/password_manager/password_store_x.h" 5 #include "chrome/browser/password_manager/password_store_x.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
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/prefs/pref_service.h"
16 #include "base/run_loop.h" 15 #include "base/run_loop.h"
17 #include "base/stl_util.h" 16 #include "base/stl_util.h"
18 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
19 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
20 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
21 #include "base/thread_task_runner_handle.h" 20 #include "base/thread_task_runner_handle.h"
22 #include "base/time/time.h" 21 #include "base/time/time.h"
23 #include "chrome/test/base/testing_browser_process.h" 22 #include "chrome/test/base/testing_browser_process.h"
24 #include "components/password_manager/core/browser/password_manager_test_utils.h " 23 #include "components/password_manager/core/browser/password_manager_test_utils.h "
25 #include "components/password_manager/core/browser/password_store_change.h" 24 #include "components/password_manager/core/browser/password_store_change.h"
26 #include "components/password_manager/core/browser/password_store_consumer.h" 25 #include "components/password_manager/core/browser/password_store_consumer.h"
27 #include "components/password_manager/core/browser/password_store_origin_unittes t.h" 26 #include "components/password_manager/core/browser/password_store_origin_unittes t.h"
28 #include "components/password_manager/core/common/password_manager_pref_names.h" 27 #include "components/password_manager/core/common/password_manager_pref_names.h"
28 #include "components/prefs/pref_service.h"
29 #include "content/public/browser/browser_thread.h" 29 #include "content/public/browser/browser_thread.h"
30 #include "content/public/test/test_browser_thread_bundle.h" 30 #include "content/public/test/test_browser_thread_bundle.h"
31 #include "testing/gmock/include/gmock/gmock.h" 31 #include "testing/gmock/include/gmock/gmock.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
34 using autofill::PasswordForm; 34 using autofill::PasswordForm;
35 using password_manager::PasswordStoreChange; 35 using password_manager::PasswordStoreChange;
36 using password_manager::PasswordStoreChangeList; 36 using password_manager::PasswordStoreChangeList;
37 using password_manager::UnorderedPasswordFormElementsAre; 37 using password_manager::UnorderedPasswordFormElementsAre;
38 using testing::ElementsAreArray; 38 using testing::ElementsAreArray;
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 566
567 INSTANTIATE_TEST_CASE_P(NoBackend, 567 INSTANTIATE_TEST_CASE_P(NoBackend,
568 PasswordStoreXTest, 568 PasswordStoreXTest,
569 testing::Values(NO_BACKEND)); 569 testing::Values(NO_BACKEND));
570 INSTANTIATE_TEST_CASE_P(FailingBackend, 570 INSTANTIATE_TEST_CASE_P(FailingBackend,
571 PasswordStoreXTest, 571 PasswordStoreXTest,
572 testing::Values(FAILING_BACKEND)); 572 testing::Values(FAILING_BACKEND));
573 INSTANTIATE_TEST_CASE_P(WorkingBackend, 573 INSTANTIATE_TEST_CASE_P(WorkingBackend,
574 PasswordStoreXTest, 574 PasswordStoreXTest,
575 testing::Values(WORKING_BACKEND)); 575 testing::Values(WORKING_BACKEND));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698