| 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/extensions/extension_sync_data.h" | 5 #include "chrome/browser/extensions/extension_sync_data.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/version.h" | 8 #include "base/version.h" |
| 9 #include "chrome/browser/sync/protocol/app_specifics.pb.h" | |
| 10 #include "chrome/browser/sync/protocol/extension_specifics.pb.h" | |
| 11 #include "chrome/browser/sync/protocol/sync.pb.h" | |
| 12 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "sync/protocol/app_specifics.pb.h" |
| 11 #include "sync/protocol/extension_specifics.pb.h" |
| 12 #include "sync/protocol/sync.pb.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 18 const FilePath::CharType kExtensionFilePath[] = FILE_PATH_LITERAL("c:\\foo"); | 18 const FilePath::CharType kExtensionFilePath[] = FILE_PATH_LITERAL("c:\\foo"); |
| 19 #elif defined(OS_POSIX) | 19 #elif defined(OS_POSIX) |
| 20 const FilePath::CharType kExtensionFilePath[] = FILE_PATH_LITERAL("/foo"); | 20 const FilePath::CharType kExtensionFilePath[] = FILE_PATH_LITERAL("/foo"); |
| 21 #endif | 21 #endif |
| 22 | 22 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 SyncData sync_data = | 187 SyncData sync_data = |
| 188 SyncData::CreateLocalData("sync_tag", "non_unique_title", entity); | 188 SyncData::CreateLocalData("sync_tag", "non_unique_title", entity); |
| 189 | 189 |
| 190 ExtensionSyncData extension_sync_data(sync_data); | 190 ExtensionSyncData extension_sync_data(sync_data); |
| 191 | 191 |
| 192 // Try loading the synced data back out, there should be no problems. | 192 // Try loading the synced data back out, there should be no problems. |
| 193 extension_sync_data.PopulateAppSpecifics(app_specifics); | 193 extension_sync_data.PopulateAppSpecifics(app_specifics); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace | 196 } // namespace |
| OLD | NEW |