Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: components/audio_modem/modem_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/audio_modem/modem_impl.cc ('k') | components/audio_modem/public/audio_modem_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/audio_modem/modem_impl.cc ('k') | components/audio_modem/public/audio_modem_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698