blob: d62a8036c99c3a464015969fa3985b8ba22ab732 [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_MANAGER_TEST_ACTION_LOGGER_H_
#define UI_DISPLAY_MANAGER_TEST_ACTION_LOGGER_H_
#include <string>
#include "base/macros.h"
namespace display {
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 display
#endif // UI_DISPLAY_MANAGER_TEST_ACTION_LOGGER_H_