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

Side by Side Diff: components/sync/engine_impl/sync_manager_impl_unittest.cc

Issue 2425673003: [Sync] Moved down comments directly following copyright. (Closed)
Patch Set: Updates for Max. Created 4 years, 2 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Unit tests for the SyncApi. Note that a lot of the underlying
6 // functionality is provided by the Syncable layer, which has its own
7 // unit tests. We'll test SyncApi specific things in this harness.
8
9 #include "components/sync/engine_impl/sync_manager_impl.h" 5 #include "components/sync/engine_impl/sync_manager_impl.h"
10 6
11 #include <cstddef> 7 #include <cstddef>
12 #include <memory> 8 #include <memory>
13 #include <utility> 9 #include <utility>
14 10
15 #include "base/callback.h" 11 #include "base/callback.h"
16 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
17 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
18 #include "base/format_macros.h" 14 #include "base/format_macros.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 EXPECT_EQ(BaseNode::INIT_OK, node.InitByIdLookup(root)); 209 EXPECT_EQ(BaseNode::INIT_OK, node.InitByIdLookup(root));
214 return node.GetTotalNodeCount(); 210 return node.GetTotalNodeCount();
215 } 211 }
216 212
217 const char kUrl[] = "example.com"; 213 const char kUrl[] = "example.com";
218 const char kPasswordValue[] = "secret"; 214 const char kPasswordValue[] = "secret";
219 const char kClientTag[] = "tag"; 215 const char kClientTag[] = "tag";
220 216
221 } // namespace 217 } // namespace
222 218
219 // Unit tests for the SyncApi. Note that a lot of the underlying
220 // functionality is provided by the Syncable layer, which has its own
221 // unit tests. We'll test SyncApi specific things in this harness.
223 class SyncApiTest : public testing::Test { 222 class SyncApiTest : public testing::Test {
224 public: 223 public:
225 void SetUp() override { test_user_share_.SetUp(); } 224 void SetUp() override { test_user_share_.SetUp(); }
226 225
227 void TearDown() override { test_user_share_.TearDown(); } 226 void TearDown() override { test_user_share_.TearDown(); }
228 227
229 protected: 228 protected:
230 // Create an entry with the given |model_type|, |client_tag| and 229 // Create an entry with the given |model_type|, |client_tag| and
231 // |attachment_metadata|. 230 // |attachment_metadata|.
232 void CreateEntryWithAttachmentMetadata( 231 void CreateEntryWithAttachmentMetadata(
(...skipping 3119 matching lines...) Expand 10 before | Expand all | Expand 10 after
3352 // SyncManagerInitInvalidStorageTest::GetFactory will return 3351 // SyncManagerInitInvalidStorageTest::GetFactory will return
3353 // DirectoryBackingStore that ensures that SyncManagerImpl::OpenDirectory fails. 3352 // DirectoryBackingStore that ensures that SyncManagerImpl::OpenDirectory fails.
3354 // SyncManagerImpl initialization is done in SyncManagerTest::SetUp. This test's 3353 // SyncManagerImpl initialization is done in SyncManagerTest::SetUp. This test's
3355 // task is to ensure that SyncManagerImpl reported initialization failure in 3354 // task is to ensure that SyncManagerImpl reported initialization failure in
3356 // OnInitializationComplete callback. 3355 // OnInitializationComplete callback.
3357 TEST_F(SyncManagerInitInvalidStorageTest, FailToOpenDatabase) { 3356 TEST_F(SyncManagerInitInvalidStorageTest, FailToOpenDatabase) {
3358 EXPECT_FALSE(initialization_succeeded_); 3357 EXPECT_FALSE(initialization_succeeded_);
3359 } 3358 }
3360 3359
3361 } // namespace syncer 3360 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/net/url_translator.cc ('k') | components/sync/engine_impl/sync_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698