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

Side by Side Diff: webrtc/rtc_tools/network_tester/config_reader.cc

Issue 2965593002: Move webrtc/{tools => rtc_tools} (Closed)
Patch Set: Adding back root changes Created 3 years, 5 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 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 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 #include "webrtc/tools/network_tester/config_reader.h" 10 #include "webrtc/rtc_tools/network_tester/config_reader.h"
11 11
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 namespace webrtc { 15 namespace webrtc {
16 16
17 ConfigReader::ConfigReader(const std::string& config_file_path) 17 ConfigReader::ConfigReader(const std::string& config_file_path)
18 : proto_config_index_(0) { 18 : proto_config_index_(0) {
19 std::ifstream config_stream(config_file_path, 19 std::ifstream config_stream(config_file_path,
20 std::ios_base::in | std::ios_base::binary); 20 std::ios_base::in | std::ios_base::binary);
(...skipping 20 matching lines...) Expand all
41 config.packet_send_interval_ms = proto_config.packet_send_interval_ms(); 41 config.packet_send_interval_ms = proto_config.packet_send_interval_ms();
42 config.packet_size = proto_config.packet_size(); 42 config.packet_size = proto_config.packet_size();
43 config.execution_time_ms = proto_config.execution_time_ms(); 43 config.execution_time_ms = proto_config.execution_time_ms();
44 return rtc::Optional<Config>(config); 44 return rtc::Optional<Config>(config);
45 #else 45 #else
46 return rtc::Optional<Config>(); 46 return rtc::Optional<Config>();
47 #endif // WEBRTC_NETWORK_TESTER_PROTO 47 #endif // WEBRTC_NETWORK_TESTER_PROTO
48 } 48 }
49 49
50 } // namespace webrtc 50 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/rtc_tools/network_tester/config_reader.h ('k') | webrtc/rtc_tools/network_tester/create_network_tester_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698