| OLD | NEW |
| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/synchronization/waitable_event.h" | 7 #include "base/synchronization/waitable_event.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h" | 9 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 12 #include "chrome/browser/ui/views/ssl_client_certificate_selector.h" | 12 #include "chrome/browser/ui/views/ssl_client_certificate_selector.h" |
| 13 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
| 14 #include "chrome/test/base/interactive_test_utils.h" | 14 #include "chrome/test/base/interactive_test_utils.h" |
| 15 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
| 16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 17 #include "content/public/test/browser_test_utils.h" | 17 #include "content/public/test/browser_test_utils.h" |
| 18 #include "net/base/cert_test_util.h" | |
| 19 #include "net/base/test_data_directory.h" | 18 #include "net/base/test_data_directory.h" |
| 20 #include "net/base/x509_certificate.h" | 19 #include "net/cert/x509_certificate.h" |
| 21 #include "net/http/http_transaction_factory.h" | 20 #include "net/http/http_transaction_factory.h" |
| 22 #include "net/ssl/ssl_cert_request_info.h" | 21 #include "net/ssl/ssl_cert_request_info.h" |
| 22 #include "net/test/cert_test_util.h" |
| 23 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
| 24 #include "net/url_request/url_request_context.h" | 24 #include "net/url_request/url_request_context.h" |
| 25 #include "net/url_request/url_request_context_getter.h" | 25 #include "net/url_request/url_request_context_getter.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 | 27 |
| 28 using ::testing::Mock; | 28 using ::testing::Mock; |
| 29 using ::testing::StrictMock; | 29 using ::testing::StrictMock; |
| 30 using content::BrowserThread; | 30 using content::BrowserThread; |
| 31 | 31 |
| 32 // We don't have a way to do end-to-end SSL client auth testing, so this test | 32 // We don't have a way to do end-to-end SSL client auth testing, so this test |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 EXPECT_TRUE(ui_test_utils::SendKeyPressSync( | 375 EXPECT_TRUE(ui_test_utils::SendKeyPressSync( |
| 376 browser_1_, ui::VKEY_RETURN, false, false, false, false)); | 376 browser_1_, ui::VKEY_RETURN, false, false, false, false)); |
| 377 | 377 |
| 378 Mock::VerifyAndClear(auth_requestor_.get()); | 378 Mock::VerifyAndClear(auth_requestor_.get()); |
| 379 Mock::VerifyAndClear(auth_requestor_1_.get()); | 379 Mock::VerifyAndClear(auth_requestor_1_.get()); |
| 380 | 380 |
| 381 // Now let the default selection for auth_requestor_ mock get checked on | 381 // Now let the default selection for auth_requestor_ mock get checked on |
| 382 // destruction. | 382 // destruction. |
| 383 EXPECT_CALL(*auth_requestor_, CertificateSelected(NULL)); | 383 EXPECT_CALL(*auth_requestor_, CertificateSelected(NULL)); |
| 384 } | 384 } |
| OLD | NEW |