| 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 "android_webview/browser/aw_contents_client_bridge.h" | 5 #include "android_webview/browser/aw_contents_client_bridge.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 cert_request_info_.get(), | 151 cert_request_info_.get(), |
| 152 base::WrapUnique(new TestClientCertificateDelegate(this))); | 152 base::WrapUnique(new TestClientCertificateDelegate(this))); |
| 153 int requestId = Java_MockAwContentsClientBridge_getRequestId(env_, jbridge_); | 153 int requestId = Java_MockAwContentsClientBridge_getRequestId(env_, jbridge_); |
| 154 bridge_->ProvideClientCertificateResponse(env_, jbridge_, requestId, nullptr, | 154 bridge_->ProvideClientCertificateResponse(env_, jbridge_, requestId, nullptr, |
| 155 nullptr); | 155 nullptr); |
| 156 base::RunLoop().RunUntilIdle(); | 156 base::RunLoop().RunUntilIdle(); |
| 157 EXPECT_EQ(nullptr, selected_cert_); | 157 EXPECT_EQ(nullptr, selected_cert_); |
| 158 EXPECT_EQ(1, cert_selected_callbacks_); | 158 EXPECT_EQ(1, cert_selected_callbacks_); |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // android_webview | 161 } // namespace android_webview |
| OLD | NEW |