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

Side by Side Diff: sync/internal_api/test/test_user_share.cc

Issue 11638018: [sync] Componentize sync: Part 5: Eliminate filename collisions in sync.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comments Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/test/test_entry_factory.cc ('k') | sync/internal_api/write_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 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 #include "sync/internal_api/public/test/test_user_share.h" 5 #include "sync/internal_api/public/test/test_user_share.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "sync/syncable/directory.h" 8 #include "sync/syncable/directory.h"
9 #include "sync/syncable/mutable_entry.h" 9 #include "sync/syncable/mutable_entry.h"
10 #include "sync/syncable/write_transaction.h" 10 #include "sync/syncable/syncable_write_transaction.h"
11 #include "sync/test/engine/test_directory_setter_upper.h" 11 #include "sync/test/engine/test_directory_setter_upper.h"
12 #include "sync/test/engine/test_id_factory.h" 12 #include "sync/test/engine/test_id_factory.h"
13 #include "sync/test/engine/test_syncable_utils.h" 13 #include "sync/test/engine/test_syncable_utils.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace syncer { 16 namespace syncer {
17 17
18 TestUserShare::TestUserShare() : dir_maker_(new TestDirectorySetterUpper()) {} 18 TestUserShare::TestUserShare() : dir_maker_(new TestDirectorySetterUpper()) {}
19 19
20 TestUserShare::~TestUserShare() { 20 TestUserShare::~TestUserShare() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 /* static */ 54 /* static */
55 bool TestUserShare::CreateRoot(ModelType model_type, UserShare* user_share) { 55 bool TestUserShare::CreateRoot(ModelType model_type, UserShare* user_share) {
56 syncer::syncable::Directory* directory = user_share->directory.get(); 56 syncer::syncable::Directory* directory = user_share->directory.get();
57 syncable::WriteTransaction wtrans(FROM_HERE, syncable::UNITTEST, directory); 57 syncable::WriteTransaction wtrans(FROM_HERE, syncable::UNITTEST, directory);
58 CreateTypeRoot(&wtrans, directory, model_type); 58 CreateTypeRoot(&wtrans, directory, model_type);
59 return true; 59 return true;
60 } 60 }
61 61
62 } // namespace syncer 62 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/test/test_entry_factory.cc ('k') | sync/internal_api/write_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698