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

Side by Side Diff: components/password_manager/content/renderer/credential_manager_client_browsertest.cc

Issue 2514093002: Mojo EDK: Clean shutdown for ScopedIPCSupport in tests (Closed)
Patch Set: table flip emoji Created 4 years, 1 month 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/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 11
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
14 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
15 #include "content/public/renderer/render_frame.h" 16 #include "content/public/renderer/render_frame.h"
16 #include "content/public/renderer/render_view.h" 17 #include "content/public/renderer/render_view.h"
17 #include "content/public/test/render_view_test.h" 18 #include "content/public/test/render_view_test.h"
18 #include "mojo/public/cpp/bindings/binding_set.h" 19 #include "mojo/public/cpp/bindings/binding_set.h"
19 #include "services/service_manager/public/cpp/interface_provider.h" 20 #include "services/service_manager/public/cpp/interface_provider.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 #include "third_party/WebKit/public/platform/WebCredential.h" 22 #include "third_party/WebKit/public/platform/WebCredential.h"
22 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" 23 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 241
241 EXPECT_FALSE(callback_succeeded()); 242 EXPECT_FALSE(callback_succeeded());
242 EXPECT_TRUE(callback_errored()); 243 EXPECT_TRUE(callback_errored());
243 EXPECT_FALSE(credential_); 244 EXPECT_FALSE(credential_);
244 EXPECT_EQ(blink::WebCredentialManagerError:: 245 EXPECT_EQ(blink::WebCredentialManagerError::
245 WebCredentialManagerPasswordStoreUnavailableError, 246 WebCredentialManagerPasswordStoreUnavailableError,
246 error_); 247 error_);
247 } 248 }
248 249
249 } // namespace password_manager 250 } // namespace password_manager
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_frame_observer_browsertest.cc ('k') | ipc/ipc_mojo_bootstrap_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698