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

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

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia Created 7 years, 2 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/app_sync_data.h" 5 #include "chrome/browser/extensions/app_sync_data.h"
6 6
7 #include "sync/api/string_ordinal.h" 7 #include "sync/api/string_ordinal.h"
8 #include "sync/protocol/app_specifics.pb.h" 8 #include "sync/protocol/app_specifics.pb.h"
9 #include "sync/protocol/sync.pb.h" 9 #include "sync/protocol/sync.pb.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 namespace {
15
16 const char kValidId[] = "abcdefghijklmnopabcdefghijklmnop"; 14 const char kValidId[] = "abcdefghijklmnopabcdefghijklmnop";
17 const char kName[] = "MyExtension"; 15 const char kName[] = "MyExtension";
18 const char kValidVersion[] = "0.0.0.0"; 16 const char kValidVersion[] = "0.0.0.0";
19 const char kValidUpdateUrl[] = 17 const char kValidUpdateUrl[] = "http://clients2.google.com/service/update2/crx";
20 "http://clients2.google.com/service/update2/crx";
21 const char kOAuthClientId[] = "1234abcd";
22
23 } // namespace
24 18
25 class AppSyncDataTest : public testing::Test { 19 class AppSyncDataTest : public testing::Test {
26 public: 20 public:
27 AppSyncDataTest() {} 21 AppSyncDataTest() {}
28 virtual ~AppSyncDataTest() {} 22 virtual ~AppSyncDataTest() {}
29 23
30 void SetRequiredExtensionValues( 24 void SetRequiredExtensionValues(
31 sync_pb::ExtensionSpecifics* extension_specifics) { 25 sync_pb::ExtensionSpecifics* extension_specifics) {
32 extension_specifics->set_id(kValidId); 26 extension_specifics->set_id(kValidId);
33 extension_specifics->set_update_url(kValidUpdateUrl); 27 extension_specifics->set_update_url(kValidUpdateUrl);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 88
95 syncer::SyncData sync_data = 89 syncer::SyncData sync_data =
96 syncer::SyncData::CreateLocalData("sync_tag", "non_unique_title", entity); 90 syncer::SyncData::CreateLocalData("sync_tag", "non_unique_title", entity);
97 91
98 // There should be no issue loading the sync data. 92 // There should be no issue loading the sync data.
99 AppSyncData app_sync_data(sync_data); 93 AppSyncData app_sync_data(sync_data);
100 app_sync_data.GetSyncData(); 94 app_sync_data.GetSyncData();
101 } 95 }
102 96
103 } // namespace extensions 97 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698