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

Side by Side Diff: webrtc/modules/audio_processing/test/conversational_speech/timing.cc

Issue 2761853002: Conversational Speech tool, MultiEndCall class and unit tests via mocking (Closed)
Patch Set: BUILD deps fixed Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/modules/audio_processing/test/conversational_speech/timing.h" 11 #include "webrtc/modules/audio_processing/test/conversational_speech/timing.h"
12 12
13 #include <fstream> 13 #include <fstream>
14 #include <iostream> 14 #include <iostream>
15 15
16 #include "webrtc/base/array_view.h"
17 #include "webrtc/base/stringencode.h" 16 #include "webrtc/base/stringencode.h"
18 17
19 namespace webrtc { 18 namespace webrtc {
20 namespace test { 19 namespace test {
21 namespace conversational_speech { 20 namespace conversational_speech {
22 21
23 bool Turn::operator==(const Turn &b) const { 22 bool Turn::operator==(const Turn &b) const {
24 return b.speaker_name == speaker_name && 23 return b.speaker_name == speaker_name &&
25 b.audiotrack_file_name == audiotrack_file_name && 24 b.audiotrack_file_name == audiotrack_file_name &&
26 b.offset == offset; 25 b.offset == offset;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 for (const Turn& turn : timing) { 57 for (const Turn& turn : timing) {
59 outfile << turn.speaker_name << " " << turn.audiotrack_file_name 58 outfile << turn.speaker_name << " " << turn.audiotrack_file_name
60 << " " << turn.offset << std::endl; 59 << " " << turn.offset << std::endl;
61 } 60 }
62 outfile.close(); 61 outfile.close();
63 } 62 }
64 63
65 } // namespace conversational_speech 64 } // namespace conversational_speech
66 } // namespace test 65 } // namespace test
67 } // namespace webrtc 66 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698