| OLD | NEW |
| 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
| 5 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "build/build_config.h" |
| 6 #include "chrome/browser/sync/test/integration/dictionary_helper.h" | 10 #include "chrome/browser/sync/test/integration/dictionary_helper.h" |
| 7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 11 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 8 #include "chrome/browser/sync/test/integration/sync_test.h" | 12 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 9 #include "chrome/common/spellcheck_common.h" | 13 #include "chrome/common/spellcheck_common.h" |
| 10 | 14 |
| 11 using dictionary_helper::AwaitNumDictionaryEntries; | 15 using dictionary_helper::AwaitNumDictionaryEntries; |
| 12 using chrome::spellcheck_common::MAX_SYNCABLE_DICTIONARY_WORDS; | 16 using chrome::spellcheck_common::MAX_SYNCABLE_DICTIONARY_WORDS; |
| 13 | 17 |
| 14 class MultipleClientDictionarySyncTest : public SyncTest { | 18 class MultipleClientDictionarySyncTest : public SyncTest { |
| 15 public: | 19 public: |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // the server. It will commit some of the entries it had locally. And it | 125 // the server. It will commit some of the entries it had locally. And it |
| 122 // will have a few uncommittable items left over. | 126 // will have a few uncommittable items left over. |
| 123 ASSERT_TRUE(AwaitNumDictionaryEntries(n-1, initial_words*n)); | 127 ASSERT_TRUE(AwaitNumDictionaryEntries(n-1, initial_words*n)); |
| 124 | 128 |
| 125 // Everyone else should be at the limit. | 129 // Everyone else should be at the limit. |
| 126 for (int i = 0; i < n-1; ++i) { | 130 for (int i = 0; i < n-1; ++i) { |
| 127 SCOPED_TRACE(i); | 131 SCOPED_TRACE(i); |
| 128 ASSERT_TRUE(AwaitNumDictionaryEntries(i, MAX_SYNCABLE_DICTIONARY_WORDS)); | 132 ASSERT_TRUE(AwaitNumDictionaryEntries(i, MAX_SYNCABLE_DICTIONARY_WORDS)); |
| 129 } | 133 } |
| 130 } | 134 } |
| OLD | NEW |