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

Side by Side Diff: webrtc/modules/audio_coding/neteq/test/neteq_pcmu_quality_test.cc

Issue 1753293002: Safe numeric library: base/numerics (copied from Chromium) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase with master + correct new safe_conversions.h include Created 4 years, 9 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 <memory> 11 #include <memory>
12 12
13 #include "webrtc/base/checks.h" 13 #include "webrtc/base/checks.h"
14 #include "webrtc/base/safe_conversions.h" 14 #include "webrtc/base/numerics/safe_conversions.h"
15 #include "webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h" 15 #include "webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h"
16 #include "webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.h" 16 #include "webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.h"
17 #include "webrtc/test/testsupport/fileutils.h" 17 #include "webrtc/test/testsupport/fileutils.h"
18 18
19 using google::RegisterFlagValidator; 19 using google::RegisterFlagValidator;
20 using google::ParseCommandLineFlags; 20 using google::ParseCommandLineFlags;
21 using std::string; 21 using std::string;
22 using testing::InitGoogleTest; 22 using testing::InitGoogleTest;
23 23
24 namespace webrtc { 24 namespace webrtc {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 private: 78 private:
79 std::unique_ptr<AudioEncoderPcmU> encoder_; 79 std::unique_ptr<AudioEncoderPcmU> encoder_;
80 }; 80 };
81 81
82 TEST_F(NetEqPcmuQualityTest, Test) { 82 TEST_F(NetEqPcmuQualityTest, Test) {
83 Simulate(); 83 Simulate();
84 } 84 }
85 85
86 } // namespace test 86 } // namespace test
87 } // namespace webrtc 87 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/test/neteq_ilbc_quality_test.cc ('k') | webrtc/modules/audio_coding/neteq/time_stretch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698