| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <set> | 5 #include <set> |
| 6 | 6 |
| 7 #include "ash/accelerators/accelerator_table.h" | 7 #include "ash/common/accelerators/accelerator_table.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 struct Cmp { | 15 struct Cmp { |
| 16 bool operator()(const AcceleratorData& lhs, const AcceleratorData& rhs) { | 16 bool operator()(const AcceleratorData& lhs, const AcceleratorData& rhs) { |
| 17 if (lhs.trigger_on_press != rhs.trigger_on_press) | 17 if (lhs.trigger_on_press != rhs.trigger_on_press) |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // The UMA histogram name must be of the format "Ash.Accelerators.*" | 99 // The UMA histogram name must be of the format "Ash.Accelerators.*" |
| 100 std::string uma_histogram(data.uma_histogram_name); | 100 std::string uma_histogram(data.uma_histogram_name); |
| 101 EXPECT_TRUE(base::StartsWith(uma_histogram, "Ash.Accelerators.", | 101 EXPECT_TRUE(base::StartsWith(uma_histogram, "Ash.Accelerators.", |
| 102 base::CompareCase::SENSITIVE)); | 102 base::CompareCase::SENSITIVE)); |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 | 105 |
| 106 #endif // defined(OS_CHROMEOS) | 106 #endif // defined(OS_CHROMEOS) |
| 107 | 107 |
| 108 } // namespace ash | 108 } // namespace ash |
| OLD | NEW |