| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "content/common/media/audio_messages.h" | 12 #include "content/common/media/audio_messages.h" |
| 12 #include "content/renderer/media/audio_message_filter.h" | 13 #include "content/renderer/media/audio_message_filter.h" |
| 13 #include "media/audio/audio_output_ipc.h" | 14 #include "media/audio/audio_output_ipc.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 const int kRenderFrameId = 2; | 20 const int kRenderFrameId = 2; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 192 |
| 192 ipc1->CloseStream(); | 193 ipc1->CloseStream(); |
| 193 ipc2->CloseStream(); | 194 ipc2->CloseStream(); |
| 194 EXPECT_EQ(static_cast<media::AudioOutputIPCDelegate*>(NULL), | 195 EXPECT_EQ(static_cast<media::AudioOutputIPCDelegate*>(NULL), |
| 195 filter->delegates_.Lookup(kStreamId1)); | 196 filter->delegates_.Lookup(kStreamId1)); |
| 196 EXPECT_EQ(static_cast<media::AudioOutputIPCDelegate*>(NULL), | 197 EXPECT_EQ(static_cast<media::AudioOutputIPCDelegate*>(NULL), |
| 197 filter->delegates_.Lookup(kStreamId2)); | 198 filter->delegates_.Lookup(kStreamId2)); |
| 198 } | 199 } |
| 199 | 200 |
| 200 } // namespace content | 201 } // namespace content |
| OLD | NEW |