| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/macros.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 10 #include "chrome/browser/ui/views/certificate_selector.h" | 11 #include "chrome/browser/ui/views/certificate_selector.h" |
| 11 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
| 12 #include "chrome/test/base/interactive_test_utils.h" | 13 #include "chrome/test/base/interactive_test_utils.h" |
| 13 #include "content/public/test/browser_test_utils.h" | 14 #include "content/public/test/browser_test_utils.h" |
| 14 #include "net/base/test_data_directory.h" | 15 #include "net/base/test_data_directory.h" |
| 15 #include "net/cert/x509_certificate.h" | 16 #include "net/cert/x509_certificate.h" |
| 16 #include "net/test/cert_test_util.h" | 17 #include "net/test/cert_test_util.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 selector_->OnDoubleClick(); | 122 selector_->OnDoubleClick(); |
| 122 | 123 |
| 123 // Wait for the dialog to be closed and destroyed. | 124 // Wait for the dialog to be closed and destroyed. |
| 124 loop.Run(); | 125 loop.Run(); |
| 125 | 126 |
| 126 // Closing the dialog through a double click must call only the Accept() | 127 // Closing the dialog through a double click must call only the Accept() |
| 127 // function and not Cancel(). | 128 // function and not Cancel(). |
| 128 EXPECT_TRUE(accepted); | 129 EXPECT_TRUE(accepted); |
| 129 EXPECT_FALSE(canceled); | 130 EXPECT_FALSE(canceled); |
| 130 } | 131 } |
| OLD | NEW |