OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 entry. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/scoped_temp_dir.h" | 8 #include "base/scoped_temp_dir.h" |
9 #include "chrome/browser/sync/syncable/directory_manager.h" | 9 #include "chrome/browser/sync/syncable/directory_manager.h" |
10 #include "chrome/browser/sync/util/character_set_converters.h" | 10 #include "chrome/browser/sync/util/character_set_converters.h" |
11 #include "chrome/browser/sync/util/user_settings.h" | 11 #include "chrome/browser/sync/util/user_settings.h" |
12 #include "chrome/browser/sync/util/query_helpers.h" | 12 #include "chrome/browser/sync/util/query_helpers.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 EXPECT_FALSE(file_util::PathExists(old_style_sync_data_path())); | 100 EXPECT_FALSE(file_util::PathExists(old_style_sync_data_path())); |
101 | 101 |
102 FilePath new_style_path = temp_dir.path().Append( | 102 FilePath new_style_path = temp_dir.path().Append( |
103 syncable::DirectoryManager::GetSyncDataDatabaseFilename()); | 103 syncable::DirectoryManager::GetSyncDataDatabaseFilename()); |
104 | 104 |
105 std::string contents; | 105 std::string contents; |
106 ASSERT_TRUE(file_util::ReadFileToString(new_style_path, &contents)); | 106 ASSERT_TRUE(file_util::ReadFileToString(new_style_path, &contents)); |
107 EXPECT_TRUE(sync_data() == contents); | 107 EXPECT_TRUE(sync_data() == contents); |
108 sqlite3_close(handle); | 108 sqlite3_close(handle); |
109 } | 109 } |
OLD | NEW |