blob: 37f3f86894edacabfda83ab995549ed57866206d [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SALSA_TRY_TOUCH_EXPERIMENT_EXPERIMENT_H_
#define SALSA_TRY_TOUCH_EXPERIMENT_EXPERIMENT_H_
#include <string>
#include <vector>
#include <base/strings/string_split.h>
#include "salsa/try_touch_experiment/treatment.h"
class Experiment {
public:
Experiment();
explicit Experiment(const std::string &experiment_string);
bool ApplyTreatment(unsigned int treatment_num) const;
bool Reset() const;
int Size() const;
bool valid() const;
private:
std::vector<Treatment> treatments_;
bool is_valid_;
};
#endif // SALSA_TRY_TOUCH_EXPERIMENT_EXPERIMENT_H_