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 "components/audio_modem/public/modem.h" | 5 #include "components/audio_modem/public/modem.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "components/audio_modem/audio_player.h" | 12 #include "components/audio_modem/audio_player.h" |
12 #include "components/audio_modem/audio_recorder.h" | 13 #include "components/audio_modem/audio_recorder.h" |
13 #include "components/audio_modem/modem_impl.h" | 14 #include "components/audio_modem/modem_impl.h" |
14 #include "components/audio_modem/test/random_samples.h" | 15 #include "components/audio_modem/test/random_samples.h" |
15 #include "components/audio_modem/test/stub_whispernet_client.h" | 16 #include "components/audio_modem/test/stub_whispernet_client.h" |
16 #include "media/base/audio_bus.h" | 17 #include "media/base/audio_bus.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
19 namespace audio_modem { | 20 namespace audio_modem { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 modem_->StartRecording(INAUDIBLE); | 145 modem_->StartRecording(INAUDIBLE); |
145 recorder_->TriggerDecodeRequest(); | 146 recorder_->TriggerDecodeRequest(); |
146 EXPECT_EQ(BOTH, last_received_decode_type_); | 147 EXPECT_EQ(BOTH, last_received_decode_type_); |
147 | 148 |
148 modem_->StopRecording(AUDIBLE); | 149 modem_->StopRecording(AUDIBLE); |
149 recorder_->TriggerDecodeRequest(); | 150 recorder_->TriggerDecodeRequest(); |
150 EXPECT_EQ(INAUDIBLE, last_received_decode_type_); | 151 EXPECT_EQ(INAUDIBLE, last_received_decode_type_); |
151 } | 152 } |
152 | 153 |
153 } // namespace audio_modem | 154 } // namespace audio_modem |
OLD | NEW |