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

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

Issue 9668028: [Sync] Create new top-level sync/ directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 9 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 | Annotate | Revision Log
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 "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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_data.cc ('k') | chrome/browser/extensions/settings/setting_sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698