| 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 "chrome/common/extensions/command.h" | 5 #include "chrome/common/extensions/command.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "build/build_config.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 17 |
| 14 class CommandTest : public testing::Test { | 18 class CommandTest : public testing::Test { |
| 15 }; | 19 }; |
| 16 | 20 |
| 17 typedef const struct { | 21 typedef const struct { |
| 18 bool expected_result; | 22 bool expected_result; |
| 19 ui::Accelerator accelerator; | 23 ui::Accelerator accelerator; |
| 20 const char* command_name; | 24 const char* command_name; |
| 21 const char* key; | 25 const char* key; |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 }; | 305 }; |
| 302 std::vector<std::string> non_chromeos; | 306 std::vector<std::string> non_chromeos; |
| 303 non_chromeos.push_back("default"); | 307 non_chromeos.push_back("default"); |
| 304 non_chromeos.push_back("windows"); | 308 non_chromeos.push_back("windows"); |
| 305 non_chromeos.push_back("mac"); | 309 non_chromeos.push_back("mac"); |
| 306 non_chromeos.push_back("linux"); | 310 non_chromeos.push_back("linux"); |
| 307 | 311 |
| 308 for (size_t i = 0; i < arraysize(kNonChromeOsSearchTests); ++i) | 312 for (size_t i = 0; i < arraysize(kNonChromeOsSearchTests); ++i) |
| 309 CheckParse(kNonChromeOsSearchTests[i], i, true, non_chromeos); | 313 CheckParse(kNonChromeOsSearchTests[i], i, true, non_chromeos); |
| 310 } | 314 } |
| OLD | NEW |