Correctly track texture cleared state for sharing
[chromium-blink-merge.git] / ui / display / chromeos / test / action_logger.h
blob92028fcd825baa32ea7216b7a96641a237965fea
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 #ifndef UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_
6 #define UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_
8 #include <string>
10 #include "base/macros.h"
12 namespace ui {
13 namespace test {
15 class ActionLogger {
16 public:
17 ActionLogger();
18 ~ActionLogger();
20 void AppendAction(const std::string& action);
22 // Returns a comma-separated string describing the actions that were
23 // requested since the previous call to GetActionsAndClear() (i.e.
24 // results are non-repeatable).
25 std::string GetActionsAndClear();
27 private:
28 std::string actions_;
30 DISALLOW_COPY_AND_ASSIGN(ActionLogger);
33 } // namespace test
34 } // namespace ui
36 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_