blob: 92028fcd825baa32ea7216b7a96641a237965fea [file] [log] [blame]
// Copyright 2014 The Chromium 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 UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_
#define UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_
#include <string>
#include "base/macros.h"
namespace ui {
namespace test {
class ActionLogger {
public:
ActionLogger();
~ActionLogger();
void AppendAction(const std::string& action);
// Returns a comma-separated string describing the actions that were
// requested since the previous call to GetActionsAndClear() (i.e.
// results are non-repeatable).
std::string GetActionsAndClear();
private:
std::string actions_;
DISALLOW_COPY_AND_ASSIGN(ActionLogger);
};
} // namespace test
} // namespace ui
#endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_