Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: chrome/common/extensions/command_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/command.cc ('k') | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/command.cc ('k') | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698