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

Side by Side Diff: components/password_manager/content/browser/credential_manager_impl_unittest.cc

Issue 2953443002: Revert of Reland: Move the files related to Android <-> Web credentials to a separate folder. (Closed)
Patch Set: Created 3 years, 6 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 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/content/browser/credential_manager_impl.h" 5 #include "components/password_manager/content/browser/credential_manager_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <tuple> 10 #include <tuple>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ptr_util.h" 18 #include "base/memory/ptr_util.h"
19 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
20 #include "base/run_loop.h" 20 #include "base/run_loop.h"
21 #include "base/single_thread_task_runner.h" 21 #include "base/single_thread_task_runner.h"
22 #include "base/strings/string16.h" 22 #include "base/strings/string16.h"
23 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "base/threading/thread_task_runner_handle.h" 24 #include "base/threading/thread_task_runner_handle.h"
25 #include "components/password_manager/core/browser/android_affiliation/mock_affi liated_match_helper.h"
26 #include "components/password_manager/core/browser/credential_manager_password_f orm_manager.h" 25 #include "components/password_manager/core/browser/credential_manager_password_f orm_manager.h"
26 #include "components/password_manager/core/browser/mock_affiliated_match_helper. h"
27 #include "components/password_manager/core/browser/password_manager.h" 27 #include "components/password_manager/core/browser/password_manager.h"
28 #include "components/password_manager/core/browser/stub_password_manager_client. h" 28 #include "components/password_manager/core/browser/stub_password_manager_client. h"
29 #include "components/password_manager/core/browser/stub_password_manager_driver. h" 29 #include "components/password_manager/core/browser/stub_password_manager_driver. h"
30 #include "components/password_manager/core/browser/test_password_store.h" 30 #include "components/password_manager/core/browser/test_password_store.h"
31 #include "components/password_manager/core/common/credential_manager_types.h" 31 #include "components/password_manager/core/common/credential_manager_types.h"
32 #include "components/password_manager/core/common/password_manager_pref_names.h" 32 #include "components/password_manager/core/common/password_manager_pref_names.h"
33 #include "components/prefs/pref_registry_simple.h" 33 #include "components/prefs/pref_registry_simple.h"
34 #include "components/prefs/testing_pref_service.h" 34 #include "components/prefs/testing_pref_service.h"
35 #include "content/public/browser/web_contents.h" 35 #include "content/public/browser/web_contents.h"
36 #include "content/public/test/mock_render_process_host.h" 36 #include "content/public/test/mock_render_process_host.h"
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 EXPECT_CALL(*client_, PromptUserToSavePasswordPtr(_)); 1621 EXPECT_CALL(*client_, PromptUserToSavePasswordPtr(_));
1622 CallStore(info, base::Bind(&RespondCallback, &called)); 1622 CallStore(info, base::Bind(&RespondCallback, &called));
1623 // Allow the PasswordFormManager to talk to the password store 1623 // Allow the PasswordFormManager to talk to the password store
1624 RunAllPendingTasks(); 1624 RunAllPendingTasks();
1625 1625
1626 ASSERT_TRUE(client_->pending_manager()); 1626 ASSERT_TRUE(client_->pending_manager());
1627 EXPECT_TRUE(client_->pending_manager()->IsBlacklisted()); 1627 EXPECT_TRUE(client_->pending_manager()->IsBlacklisted());
1628 } 1628 }
1629 1629
1630 } // namespace password_manager 1630 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698