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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_multilingual_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, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/renderer/spellchecker/spellcheck_provider_test.h" 5 #include "chrome/renderer/spellchecker/spellcheck_provider_test.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
11 #include "base/macros.h"
9 #include "base/path_service.h" 12 #include "base/path_service.h"
10 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
11 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/common/spellcheck_common.h" 16 #include "chrome/common/spellcheck_common.h"
14 #include "chrome/common/spellcheck_result.h" 17 #include "chrome/common/spellcheck_result.h"
15 #include "chrome/renderer/spellchecker/spellcheck.h" 18 #include "chrome/renderer/spellchecker/spellcheck.h"
16 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/WebKit/public/platform/WebString.h" 20 #include "third_party/WebKit/public/platform/WebString.h"
18 #include "third_party/WebKit/public/platform/WebVector.h" 21 #include "third_party/WebKit/public/platform/WebVector.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 base::WideToUTF16(kTestCases[i].expected_suggestions), 246 base::WideToUTF16(kTestCases[i].expected_suggestions),
244 base::string16(1, ','), base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 247 base::string16(1, ','), base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
245 248
246 EXPECT_EQ(expected_suggestions.size(), suggestions.size()); 249 EXPECT_EQ(expected_suggestions.size(), suggestions.size());
247 for (size_t j = 0; 250 for (size_t j = 0;
248 j < std::min(expected_suggestions.size(), suggestions.size()); j++) { 251 j < std::min(expected_suggestions.size(), suggestions.size()); j++) {
249 EXPECT_EQ(expected_suggestions[j], base::string16(suggestions[j])); 252 EXPECT_EQ(expected_suggestions[j], base::string16(suggestions[j]));
250 } 253 }
251 } 254 }
252 } 255 }
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_language.h ('k') | chrome/renderer/spellchecker/spellcheck_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698