| 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/accelerators/accelerator_table.h" |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 10 |
| 12 namespace ash { | 11 namespace ash { |
| 13 | 12 |
| 14 namespace { | 13 namespace { |
| 15 | 14 |
| 16 struct Cmp { | 15 struct Cmp { |
| 17 bool operator()(const AcceleratorData& lhs, | 16 bool operator()(const AcceleratorData& lhs, |
| 18 const AcceleratorData& rhs) { | 17 const AcceleratorData& rhs) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // The UMA histogram name must be of the format "Ash.Accelerators.*" | 101 // The UMA histogram name must be of the format "Ash.Accelerators.*" |
| 103 std::string uma_histogram(data.uma_histogram_name); | 102 std::string uma_histogram(data.uma_histogram_name); |
| 104 EXPECT_TRUE(base::StartsWith(uma_histogram, "Ash.Accelerators.", | 103 EXPECT_TRUE(base::StartsWith(uma_histogram, "Ash.Accelerators.", |
| 105 base::CompareCase::SENSITIVE)); | 104 base::CompareCase::SENSITIVE)); |
| 106 } | 105 } |
| 107 } | 106 } |
| 108 | 107 |
| 109 #endif // defined(OS_CHROMEOS) | 108 #endif // defined(OS_CHROMEOS) |
| 110 | 109 |
| 111 } // namespace ash | 110 } // namespace ash |
| OLD | NEW |