OLD | NEW |
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/renderer/credential_manager_client
.h" | 5 #include "components/password_manager/content/renderer/credential_manager_client
.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <tuple> | 10 #include <tuple> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
17 #include "content/public/renderer/render_frame.h" | 18 #include "content/public/renderer/render_frame.h" |
18 #include "content/public/renderer/render_view.h" | 19 #include "content/public/renderer/render_view.h" |
19 #include "content/public/test/render_view_test.h" | 20 #include "content/public/test/render_view_test.h" |
20 #include "mojo/public/cpp/bindings/binding_set.h" | 21 #include "mojo/public/cpp/bindings/binding_set.h" |
21 #include "services/service_manager/public/cpp/interface_provider.h" | 22 #include "services/service_manager/public/cpp/interface_provider.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "third_party/WebKit/public/platform/WebCredential.h" | 24 #include "third_party/WebKit/public/platform/WebCredential.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 244 |
244 EXPECT_FALSE(callback_succeeded()); | 245 EXPECT_FALSE(callback_succeeded()); |
245 EXPECT_TRUE(callback_errored()); | 246 EXPECT_TRUE(callback_errored()); |
246 EXPECT_FALSE(credential_); | 247 EXPECT_FALSE(credential_); |
247 EXPECT_EQ(blink::WebCredentialManagerError:: | 248 EXPECT_EQ(blink::WebCredentialManagerError:: |
248 kWebCredentialManagerPasswordStoreUnavailableError, | 249 kWebCredentialManagerPasswordStoreUnavailableError, |
249 error_); | 250 error_); |
250 } | 251 } |
251 | 252 |
252 } // namespace password_manager | 253 } // namespace password_manager |
OLD | NEW |