Adds getter for FieldTrialParameter keys.

This is useful in test tooling.

Bug: webrtc:9346
Change-Id: I4a2ac52927cfe72f392f8748d3bada1e88db1b6a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/134209
Reviewed-by: Jonas Olsson <jonasolsson@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27786}
This commit is contained in:
Sebastian Jansson 2019-04-25 14:44:07 +02:00 committed by Commit Bot
parent eb37b13943
commit e670fd9795

View file

@ -38,6 +38,7 @@ namespace webrtc {
class FieldTrialParameterInterface {
public:
virtual ~FieldTrialParameterInterface();
std::string key() const { return key_; }
protected:
// Protected to allow implementations to provide assignment and copy.
@ -55,9 +56,8 @@ class FieldTrialParameterInterface {
std::vector<FieldTrialParameterInterface*> sub_parameters_;
std::string key_;
private:
std::string key_;
bool used_ = false;
};