blob: 257fd29ac1b2b04f1b6a3f2ec2f5f58fe1009f8f [file] [log] [blame]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/display/manager/test/action_logger.h"
namespace display::test {
ActionLogger::ActionLogger() = default;
ActionLogger::~ActionLogger() = default;
void ActionLogger::AppendAction(const std::string& action) {
if (!actions_.empty())
actions_ += ",";
actions_ += action;
}
std::string ActionLogger::GetActionsAndClear() {
std::string actions = actions_;
actions_.clear();
return actions;
}
} // namespace display::test