Correctly track texture cleared state for sharing
[chromium-blink-merge.git] / ui / display / chromeos / test / action_logger.cc
blob2afcb489eaa6f6ed6adc22157c1b3e48f932c325
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/display/chromeos/test/action_logger.h"
7 namespace ui {
8 namespace test {
10 ActionLogger::ActionLogger() {
13 ActionLogger::~ActionLogger() {
16 void ActionLogger::AppendAction(const std::string& action) {
17 if (!actions_.empty())
18 actions_ += ",";
19 actions_ += action;
22 std::string ActionLogger::GetActionsAndClear() {
23 std::string actions = actions_;
24 actions_.clear();
25 return actions;
28 } // namespace test
29 } // namespace ui