OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/sync/test/engine/test_directory_setter_upper.h" | 5 #include "sync/test/engine/test_directory_setter_upper.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "chrome/browser/sync/syncable/syncable.h" | 11 #include "sync/syncable/syncable.h" |
12 #include "chrome/browser/sync/test/null_transaction_observer.h" | 12 #include "sync/test/null_transaction_observer.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 using syncable::NullTransactionObserver; | 15 using syncable::NullTransactionObserver; |
16 using syncable::ReadTransaction; | 16 using syncable::ReadTransaction; |
17 | 17 |
18 namespace browser_sync { | 18 namespace browser_sync { |
19 | 19 |
20 TestDirectorySetterUpper::TestDirectorySetterUpper() : name_("Test") {} | 20 TestDirectorySetterUpper::TestDirectorySetterUpper() : name_("Test") {} |
21 | 21 |
22 TestDirectorySetterUpper::~TestDirectorySetterUpper() {} | 22 TestDirectorySetterUpper::~TestDirectorySetterUpper() {} |
(...skipping 27 matching lines...) Expand all Loading... |
50 directory()->CheckTreeInvariants(&trans, false); | 50 directory()->CheckTreeInvariants(&trans, false); |
51 } | 51 } |
52 { | 52 { |
53 // Check invariants for all items. | 53 // Check invariants for all items. |
54 ReadTransaction trans(FROM_HERE, directory()); | 54 ReadTransaction trans(FROM_HERE, directory()); |
55 directory()->CheckTreeInvariants(&trans, true); | 55 directory()->CheckTreeInvariants(&trans, true); |
56 } | 56 } |
57 } | 57 } |
58 | 58 |
59 } // namespace browser_sync | 59 } // namespace browser_sync |
OLD | NEW |