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

Side by Side Diff: webrtc/test/field_trial.h

Issue 1511633002: Add APK targets to build libjingle tests for Android. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Reverted <gtest of libjingle_media_unittests and p2p. Created 5 years 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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
(...skipping 21 matching lines...) Expand all
32 // passed to it. That can be used to find out if a binary is parsing the flags. 32 // passed to it. That can be used to find out if a binary is parsing the flags.
33 void InitFieldTrialsFromString(const std::string& config); 33 void InitFieldTrialsFromString(const std::string& config);
34 34
35 // This class is used to override field-trial configs within specific tests. 35 // This class is used to override field-trial configs within specific tests.
36 // After this class goes out of scope previous field trials will be restored. 36 // After this class goes out of scope previous field trials will be restored.
37 class ScopedFieldTrials { 37 class ScopedFieldTrials {
38 public: 38 public:
39 explicit ScopedFieldTrials(const std::string& config); 39 explicit ScopedFieldTrials(const std::string& config);
40 ~ScopedFieldTrials(); 40 ~ScopedFieldTrials();
41 private: 41 private:
42 const std::map<std::string, std::string> previous_field_trials_; 42
kjellander_webrtc 2015/12/14 04:37:50 nit: remove blank line.
perkj_webrtc 2015/12/14 07:22:21 Done.
43 std::string current_field_trials_;
44 const char* previous_field_trials_;
43 }; 45 };
44 46
45 } // namespace test 47 } // namespace test
46 } // namespace webrtc 48 } // namespace webrtc
47 49
48 #endif // WEBRTC_TEST_FIELD_TRIAL_H_ 50 #endif // WEBRTC_TEST_FIELD_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698