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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/sql/connection.h" | |
10 #include "app/sql/statement.h" | |
11 #include "base/file_path.h" | 9 #include "base/file_path.h" |
12 #include "base/file_util.h" | 10 #include "base/file_util.h" |
13 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
14 #include "base/scoped_temp_dir.h" | 12 #include "base/scoped_temp_dir.h" |
15 #include "base/stl_util-inl.h" | 13 #include "base/stl_util-inl.h" |
16 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
17 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 15 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
18 #include "chrome/browser/sync/protocol/sync.pb.h" | 16 #include "chrome/browser/sync/protocol/sync.pb.h" |
19 #include "chrome/browser/sync/syncable/directory_backing_store.h" | 17 #include "chrome/browser/sync/syncable/directory_backing_store.h" |
20 #include "chrome/browser/sync/syncable/directory_manager.h" | 18 #include "chrome/browser/sync/syncable/directory_manager.h" |
21 #include "chrome/browser/sync/syncable/syncable-inl.h" | 19 #include "chrome/browser/sync/syncable/syncable-inl.h" |
22 #include "chrome/browser/sync/syncable/syncable.h" | 20 #include "chrome/browser/sync/syncable/syncable.h" |
| 21 #include "sql/connection.h" |
| 22 #include "sql/statement.h" |
23 #include "testing/gtest/include/gtest/gtest-param-test.h" | 23 #include "testing/gtest/include/gtest/gtest-param-test.h" |
24 | 24 |
25 namespace syncable { | 25 namespace syncable { |
26 | 26 |
27 extern const int32 kCurrentDBVersion; | 27 extern const int32 kCurrentDBVersion; |
28 | 28 |
29 class MigrationTest : public testing::TestWithParam<int> { | 29 class MigrationTest : public testing::TestWithParam<int> { |
30 public: | 30 public: |
31 virtual void SetUp() { | 31 virtual void SetUp() { |
32 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); | 32 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1714 | 1714 |
1715 STLDeleteElements(&index); | 1715 STLDeleteElements(&index); |
1716 dbs->LoadEntries(&index); | 1716 dbs->LoadEntries(&index); |
1717 EXPECT_EQ(0U, index.size()); | 1717 EXPECT_EQ(0U, index.size()); |
1718 | 1718 |
1719 dbs->EndLoad(); | 1719 dbs->EndLoad(); |
1720 dbs->EndSave(); | 1720 dbs->EndSave(); |
1721 } | 1721 } |
1722 | 1722 |
1723 } // namespace syncable | 1723 } // namespace syncable |
OLD | NEW |