| 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 "net/http/disk_cache_based_quic_server_info.h" | 5 #include "net/http/disk_cache_based_quic_server_info.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 12 #include "net/http/mock_http_cache.h" | 13 #include "net/http/mock_http_cache.h" |
| 13 #include "net/quic/crypto/quic_server_info.h" | 14 #include "net/quic/crypto/quic_server_info.h" |
| 14 #include "net/quic/quic_server_id.h" | 15 #include "net/quic/quic_server_id.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| 17 using std::string; | 18 using std::string; |
| 18 | 19 |
| 19 namespace net { | 20 namespace net { |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 DeleteCacheCompletionCallback cb(quic_server_info); | 648 DeleteCacheCompletionCallback cb(quic_server_info); |
| 648 quic_server_info->Start(); | 649 quic_server_info->Start(); |
| 649 int rv = quic_server_info->WaitForDataReady(cb.callback()); | 650 int rv = quic_server_info->WaitForDataReady(cb.callback()); |
| 650 EXPECT_EQ(ERR_IO_PENDING, rv); | 651 EXPECT_EQ(ERR_IO_PENDING, rv); |
| 651 // Now complete the backend creation and let the callback run. | 652 // Now complete the backend creation and let the callback run. |
| 652 factory->FinishCreation(); | 653 factory->FinishCreation(); |
| 653 EXPECT_EQ(OK, cb.GetResult(rv)); | 654 EXPECT_EQ(OK, cb.GetResult(rv)); |
| 654 } | 655 } |
| 655 | 656 |
| 656 } // namespace net | 657 } // namespace net |
| OLD | NEW |