| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/nss_util.h" | 7 #include "base/nss_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "base/waitable_event.h" | 10 #include "base/waitable_event.h" |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 net::CompletionCallbackImpl<UDPChannelTester> read_cb_; | 541 net::CompletionCallbackImpl<UDPChannelTester> read_cb_; |
| 542 int write_errors_; | 542 int write_errors_; |
| 543 int read_errors_; | 543 int read_errors_; |
| 544 int packets_sent_; | 544 int packets_sent_; |
| 545 int packets_received_; | 545 int packets_received_; |
| 546 int broken_packets_; | 546 int broken_packets_; |
| 547 }; | 547 }; |
| 548 | 548 |
| 549 // Mac needs to implement X509Certificate::CreateSelfSigned to enable these | 549 // Mac needs to implement X509Certificate::CreateSelfSigned to enable these |
| 550 // tests. | 550 // tests. |
| 551 #if defined(USE_NSS) || defined(OS_WIN) | 551 // TODO(hclam): Run these tests on Windows. |
| 552 #if defined(USE_NSS) |
| 552 | 553 |
| 553 // Verify that we can create and destory server objects without a connection. | 554 // Verify that we can create and destory server objects without a connection. |
| 554 TEST_F(JingleSessionTest, CreateAndDestoy) { | 555 TEST_F(JingleSessionTest, CreateAndDestoy) { |
| 555 if (!base::CheckNSSVersion("3.12.8")) | 556 if (!base::CheckNSSVersion("3.12.8")) |
| 556 return; | 557 return; |
| 557 | 558 |
| 558 CreateServerPair(); | 559 CreateServerPair(); |
| 559 } | 560 } |
| 560 | 561 |
| 561 // Verify that incoming session can be rejected, and that the status | 562 // Verify that incoming session can be rejected, and that the status |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 tester->CheckResults(); | 670 tester->CheckResults(); |
| 670 | 671 |
| 671 // Connections must be closed while |tester| still exists. | 672 // Connections must be closed while |tester| still exists. |
| 672 CloseSessions(); | 673 CloseSessions(); |
| 673 } | 674 } |
| 674 | 675 |
| 675 #endif | 676 #endif |
| 676 | 677 |
| 677 } // namespace protocol | 678 } // namespace protocol |
| 678 } // namespace remoting | 679 } // namespace remoting |
| OLD | NEW |