| OLD | NEW | 
|   1 // Copyright 2014 The Chromium Authors. All rights reserved. |   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 |   2 // Use of this source code is governed by a BSD-style license that can be | 
|   3 // found in the LICENSE file. |   3 // found in the LICENSE file. | 
|   4  |   4  | 
|   5 #ifndef UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_ |   5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_H_ | 
|   6 #define UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_ |   6 #define UI_DISPLAY_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_H_ | 
|   7  |   7  | 
|   8 #include <string> |   8 #include <string> | 
|   9  |   9  | 
|  10 #include "base/macros.h" |  10 #include "base/macros.h" | 
|  11  |  11  | 
|  12 namespace ui { |  12 namespace ui { | 
|  13 namespace test { |  13 namespace test { | 
|  14  |  14  | 
|  15 class ActionLogger { |  15 class ActionLogger { | 
|  16  public: |  16  public: | 
|  17   ActionLogger(); |  17   ActionLogger(); | 
|  18   ~ActionLogger(); |  18   ~ActionLogger(); | 
|  19  |  19  | 
|  20   void AppendAction(const std::string& action); |  20   void AppendAction(const std::string& action); | 
|  21  |  21  | 
|  22   // Returns a comma-separated string describing the actions that were |  22   // Returns a comma-separated string describing the actions that were | 
|  23   // requested since the previous call to GetActionsAndClear() (i.e. |  23   // requested since the previous call to GetActionsAndClear() (i.e. | 
|  24   // results are non-repeatable). |  24   // results are non-repeatable). | 
|  25   std::string GetActionsAndClear(); |  25   std::string GetActionsAndClear(); | 
|  26  |  26  | 
|  27  private: |  27  private: | 
|  28   std::string actions_; |  28   std::string actions_; | 
|  29  |  29  | 
|  30   DISALLOW_COPY_AND_ASSIGN(ActionLogger); |  30   DISALLOW_COPY_AND_ASSIGN(ActionLogger); | 
|  31 }; |  31 }; | 
|  32  |  32  | 
|  33 }  // namespace test |  33 }  // namespace test | 
|  34 }  // namespace ui |  34 }  // namespace ui | 
|  35  |  35  | 
|  36 #endif  // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_H_ |  36 #endif  // UI_DISPLAY_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_H_ | 
| OLD | NEW |