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 <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/version.h" | 10 #include "base/version.h" |
11 #include "components/sync/api/string_ordinal.h" | 11 #include "components/sync/model/string_ordinal.h" |
12 #include "components/sync/protocol/app_specifics.pb.h" | 12 #include "components/sync/protocol/app_specifics.pb.h" |
13 #include "components/sync/protocol/extension_specifics.pb.h" | 13 #include "components/sync/protocol/extension_specifics.pb.h" |
14 #include "components/sync/protocol/sync.pb.h" | 14 #include "components/sync/protocol/sync.pb.h" |
15 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 namespace { | 21 namespace { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 syncer::SyncData::CreateLocalData("sync_tag", "non_unique_title", entity); | 222 syncer::SyncData::CreateLocalData("sync_tag", "non_unique_title", entity); |
223 | 223 |
224 // There should be no issue loading the sync data. | 224 // There should be no issue loading the sync data. |
225 std::unique_ptr<ExtensionSyncData> app_sync_data = | 225 std::unique_ptr<ExtensionSyncData> app_sync_data = |
226 ExtensionSyncData::CreateFromSyncData(sync_data); | 226 ExtensionSyncData::CreateFromSyncData(sync_data); |
227 ASSERT_TRUE(app_sync_data.get()); | 227 ASSERT_TRUE(app_sync_data.get()); |
228 app_sync_data->GetSyncData(); | 228 app_sync_data->GetSyncData(); |
229 } | 229 } |
230 | 230 |
231 } // namespace extensions | 231 } // namespace extensions |
OLD | NEW |