| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <deque> | 5 #include <deque> |
| 6 #include <tuple> | 6 #include <tuple> |
| 7 | 7 |
| 8 #include "content/browser/child_process_security_policy_impl.h" | |
| 9 #include "content/browser/media/webrtc/webrtc_identity_store.h" | 8 #include "content/browser/media/webrtc/webrtc_identity_store.h" |
| 10 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" | 9 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" |
| 10 #include "content/browser/shared/child_process_security_policy_helper.h" |
| 11 #include "content/common/media/webrtc_identity_messages.h" | 11 #include "content/common/media/webrtc_identity_messages.h" |
| 12 #include "content/public/test/mock_resource_context.h" | 12 #include "content/public/test/mock_resource_context.h" |
| 13 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
| 14 #include "content/test/test_content_browser_client.h" | 14 #include "content/test/test_content_browser_client.h" |
| 15 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
| 16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 251 } |
| 252 | 252 |
| 253 // Verifies that we do not crash if we try to cancel a completed request. | 253 // Verifies that we do not crash if we try to cancel a completed request. |
| 254 TEST_F(WebRTCIdentityServiceHostTest, TestCancelAfterRequestCompleted) { | 254 TEST_F(WebRTCIdentityServiceHostTest, TestCancelAfterRequestCompleted) { |
| 255 SendRequestToHost(); | 255 SendRequestToHost(); |
| 256 store_->RunCompletionCallback(net::OK, kFakeCertificate, kFakePrivateKey); | 256 store_->RunCompletionCallback(net::OK, kFakeCertificate, kFakePrivateKey); |
| 257 SendCancelRequestToHost(); | 257 SendCancelRequestToHost(); |
| 258 } | 258 } |
| 259 | 259 |
| 260 } // namespace content | 260 } // namespace content |
| OLD | NEW |