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

Side by Side Diff: chrome/browser/sync/engine/syncer_proto_util.h

Issue 2658003: [GTTF] Use FRIEND_TEST_ALL_PREFIXES in chrome/browser/sync (Closed)
Patch Set: Created 10 years, 6 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
« no previous file with comments | « chrome/browser/sync/engine/syncer.h ('k') | chrome/browser/sync/engine/syncer_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h"
10 #include "chrome/browser/sync/syncable/blob.h" 11 #include "chrome/browser/sync/syncable/blob.h"
11 #include "chrome/browser/sync/syncable/model_type.h" 12 #include "chrome/browser/sync/syncable/model_type.h"
12 #include "chrome/browser/sync/util/sync_types.h" 13 #include "chrome/browser/sync/util/sync_types.h"
13 #include "testing/gtest/include/gtest/gtest_prod.h" // For FRIEND_TEST
14 14
15 namespace syncable { 15 namespace syncable {
16 class Directory; 16 class Directory;
17 class Entry; 17 class Entry;
18 class ScopedDirLookup; 18 class ScopedDirLookup;
19 class SyncName; 19 class SyncName;
20 } // namespace syncable 20 } // namespace syncable
21 21
22 namespace sync_pb { 22 namespace sync_pb {
23 class ClientToServerResponse; 23 class ClientToServerResponse;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ClientToServerMessage* msg); 102 ClientToServerMessage* msg);
103 103
104 // Post the message using the scm, and do some processing on the returned 104 // Post the message using the scm, and do some processing on the returned
105 // headers. Decode the server response. 105 // headers. Decode the server response.
106 static bool PostAndProcessHeaders(browser_sync::ServerConnectionManager* scm, 106 static bool PostAndProcessHeaders(browser_sync::ServerConnectionManager* scm,
107 browser_sync::AuthWatcher* authwatcher, 107 browser_sync::AuthWatcher* authwatcher,
108 ClientToServerMessage* msg, 108 ClientToServerMessage* msg,
109 sync_pb::ClientToServerResponse* response); 109 sync_pb::ClientToServerResponse* response);
110 110
111 friend class SyncerProtoUtilTest; 111 friend class SyncerProtoUtilTest;
112 112 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday);
113 FRIEND_TEST(SyncerProtoUtilTest, AddRequestBirthday); 113 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders);
114 FRIEND_TEST(SyncerProtoUtilTest, PostAndProcessHeaders); 114 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday);
115 FRIEND_TEST(SyncerProtoUtilTest, VerifyResponseBirthday);
116
117 115
118 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); 116 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil);
119 }; 117 };
120 118
121 } // namespace browser_sync 119 } // namespace browser_sync
122 120
123 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 121 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncer.h ('k') | chrome/browser/sync/engine/syncer_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698