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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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
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/browser/spellchecker/spellcheck_custom_dictionary.h" 5 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h"
6 6
7 #include <stddef.h>
8
7 #include <vector> 9 #include <vector>
8 10
9 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
11 #include "base/metrics/histogram_samples.h" 14 #include "base/metrics/histogram_samples.h"
12 #include "base/metrics/statistics_recorder.h" 15 #include "base/metrics/statistics_recorder.h"
13 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "build/build_config.h"
14 #include "chrome/browser/spellchecker/spellcheck_factory.h" 18 #include "chrome/browser/spellchecker/spellcheck_factory.h"
15 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" 19 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h"
16 #include "chrome/browser/spellchecker/spellcheck_service.h" 20 #include "chrome/browser/spellchecker/spellcheck_service.h"
17 #include "chrome/common/chrome_constants.h" 21 #include "chrome/common/chrome_constants.h"
18 #include "chrome/common/spellcheck_common.h" 22 #include "chrome/common/spellcheck_common.h"
19 #include "chrome/test/base/testing_profile.h" 23 #include "chrome/test/base/testing_profile.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 24 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "net/url_request/test_url_fetcher_factory.h" 25 #include "net/url_request/test_url_fetcher_factory.h"
22 #include "sync/api/sync_change.h" 26 #include "sync/api/sync_change.h"
23 #include "sync/api/sync_change_processor_wrapper_for_test.h" 27 #include "sync/api/sync_change_processor_wrapper_for_test.h"
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 SpellcheckServiceFactory::GetForContext(&profile_); 1221 SpellcheckServiceFactory::GetForContext(&profile_);
1218 SpellcheckCustomDictionary* custom_dictionary = 1222 SpellcheckCustomDictionary* custom_dictionary =
1219 spellcheck_service->GetCustomDictionary(); 1223 spellcheck_service->GetCustomDictionary();
1220 OnLoaded(*custom_dictionary, make_scoped_ptr(new std::set<std::string>)); 1224 OnLoaded(*custom_dictionary, make_scoped_ptr(new std::set<std::string>));
1221 EXPECT_FALSE(custom_dictionary->HasWord("foo")); 1225 EXPECT_FALSE(custom_dictionary->HasWord("foo"));
1222 EXPECT_FALSE(custom_dictionary->HasWord("bar")); 1226 EXPECT_FALSE(custom_dictionary->HasWord("bar"));
1223 custom_dictionary->AddWord("foo"); 1227 custom_dictionary->AddWord("foo");
1224 EXPECT_TRUE(custom_dictionary->HasWord("foo")); 1228 EXPECT_TRUE(custom_dictionary->HasWord("foo"));
1225 EXPECT_FALSE(custom_dictionary->HasWord("bar")); 1229 EXPECT_FALSE(custom_dictionary->HasWord("bar"));
1226 } 1230 }
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_custom_dictionary.cc ('k') | chrome/browser/spellchecker/spellcheck_dictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698