Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1010)

Side by Side Diff: chrome/browser/extensions/extension_sync_data_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
12 #include "components/sync/protocol/app_specifics.pb.h"
13 #include "components/sync/protocol/extension_specifics.pb.h"
14 #include "components/sync/protocol/sync.pb.h"
11 #include "extensions/common/extension.h" 15 #include "extensions/common/extension.h"
12 #include "sync/api/string_ordinal.h"
13 #include "sync/protocol/app_specifics.pb.h"
14 #include "sync/protocol/extension_specifics.pb.h"
15 #include "sync/protocol/sync.pb.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 {
22 22
23 const char kValidId[] = "abcdefghijklmnopabcdefghijklmnop"; 23 const char kValidId[] = "abcdefghijklmnopabcdefghijklmnop";
24 const char kVersion[] = "1.0.0.1"; 24 const char kVersion[] = "1.0.0.1";
25 const char kValidUpdateUrl[] = 25 const char kValidUpdateUrl[] =
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_data.cc ('k') | chrome/browser/extensions/extension_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698