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

Side by Side Diff: chrome/browser/sync/test/integration/two_client_dictionary_sync_test.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "base/strings/string_number_conversions.h" 6 #include "base/strings/string_number_conversions.h"
7 #include "chrome/browser/sync/test/integration/dictionary_helper.h" 7 #include "chrome/browser/sync/test/integration/dictionary_helper.h"
8 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 8 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
9 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 9 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
10 #include "chrome/browser/sync/test/integration/sync_test.h" 10 #include "chrome/browser/sync/test/integration/sync_test.h"
11 #include "components/spellcheck/common/spellcheck_common.h" 11 #include "components/spellcheck/common/spellcheck_common.h"
12 #include "sync/internal_api/public/base/model_type.h" 12 #include "components/sync/base/model_type.h"
13 13
14 using spellcheck::MAX_SYNCABLE_DICTIONARY_WORDS; 14 using spellcheck::MAX_SYNCABLE_DICTIONARY_WORDS;
15 using dictionary_helper::AwaitNumDictionaryEntries; 15 using dictionary_helper::AwaitNumDictionaryEntries;
16 using sync_integration_test_util::AwaitCommitActivityCompletion; 16 using sync_integration_test_util::AwaitCommitActivityCompletion;
17 using sync_integration_test_util::AwaitServerCount; 17 using sync_integration_test_util::AwaitServerCount;
18 18
19 class TwoClientDictionarySyncTest : public SyncTest { 19 class TwoClientDictionarySyncTest : public SyncTest {
20 public: 20 public:
21 TwoClientDictionarySyncTest() : SyncTest(TWO_CLIENT) {} 21 TwoClientDictionarySyncTest() : SyncTest(TWO_CLIENT) {}
22 ~TwoClientDictionarySyncTest() override {} 22 ~TwoClientDictionarySyncTest() override {}
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Client #1 should first pull remote changes, apply them, without capping at 154 // Client #1 should first pull remote changes, apply them, without capping at
155 // any sort of limit. This will cause client #1 to have 3 * chunk_size. When 155 // any sort of limit. This will cause client #1 to have 3 * chunk_size. When
156 // client #1 then tries to commit changes, that is when it obeys the limit 156 // client #1 then tries to commit changes, that is when it obeys the limit
157 // and will cause client #0 to only see the limit worth of words. 157 // and will cause client #0 to only see the limit worth of words.
158 ASSERT_TRUE(GetClient(1)->EnableSyncForAllDatatypes()); 158 ASSERT_TRUE(GetClient(1)->EnableSyncForAllDatatypes());
159 ASSERT_TRUE(AwaitNumDictionaryEntries(1, 3 * chunk_size)); 159 ASSERT_TRUE(AwaitNumDictionaryEntries(1, 3 * chunk_size));
160 ASSERT_TRUE( 160 ASSERT_TRUE(
161 AwaitServerCount(syncer::DICTIONARY, MAX_SYNCABLE_DICTIONARY_WORDS)); 161 AwaitServerCount(syncer::DICTIONARY, MAX_SYNCABLE_DICTIONARY_WORDS));
162 ASSERT_TRUE(AwaitNumDictionaryEntries(0, MAX_SYNCABLE_DICTIONARY_WORDS)); 162 ASSERT_TRUE(AwaitNumDictionaryEntries(0, MAX_SYNCABLE_DICTIONARY_WORDS));
163 } 163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698