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

Side by Side Diff: chrome/browser/sync/test/integration/dictionary_helper.h

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge master Created 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_HELPER_H_
7
8 #include <string>
9
10 #include "base/command_line.h"
11
12 class SpellcheckCustomDictionary;
13
14 namespace dictionary_helper {
15
16 // Enable dictionary sync.
17 void EnableDictionarySync(CommandLine* cl);
18
19 // Synchronously loads the dictionaries across all profiles. Also loads the
20 // dictionary for the verifier if DisableVerifier() hasn't been called. Returns
21 // only after the dictionaries have finished to load.
22 void LoadDictionaries();
23
24 // Used to check the size of the dictionary within a particular sync profile.
25 size_t GetDictionarySize(int index);
26
27 // Used to check the size of the dictionary within the verifier sync profile.
28 size_t GetVerifierDictionarySize();
29
30 // Used to verify that dictionaries match across all profiles. Also checks
31 // verifier if DisableVerifier() hasn't been called.
32 bool DictionariesMatch();
33
34 // Used to verify that the dictionary within a particular sync profile matches
35 // the dictionary within the verifier sync profile.
36 bool DictionaryMatchesVerifier(int index);
37
38 // Adds |word| to the dictionary for profile with index |index|. Also adds
39 // |word| to the verifier if DisableVerifier() hasn't been called. Returns true
40 // if |word| is valid and not a duplicate. Otherwise returns false.
41 bool AddWord(int index, const std::string& word);
42
43 // Removes |word| from the dictionary for profile with index |index|. Also
44 // removes |word| from the verifier if DisableVerifier() hasn't been called.
45 // Returns true if |word| was found. Otherwise returns false.
46 bool RemoveWord(int index, const std::string& word);
47
48 } // namespace dictionary_helper
49
50 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_DICTIONARY_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_prefs_unittest.cc ('k') | chrome/browser/sync/test/integration/dictionary_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698