OLD | NEW |
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 #include "chrome/browser/sync/engine/syncer_proto_util.h" | 5 #include "chrome/browser/sync/engine/syncer_proto_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/browser/sync/engine/syncproto.h" | 11 #include "chrome/browser/sync/engine/syncproto.h" |
12 #include "chrome/browser/sync/syncable/blob.h" | 12 #include "chrome/browser/sync/syncable/blob.h" |
13 #include "chrome/browser/sync/syncable/directory_manager.h" | 13 #include "chrome/browser/sync/syncable/directory_manager.h" |
14 #include "chrome/browser/sync/syncable/syncable.h" | 14 #include "chrome/browser/sync/syncable/syncable.h" |
15 #include "chrome/test/sync/engine/mock_connection_manager.h" | 15 #include "chrome/browser/sync/test/engine/mock_connection_manager.h" |
16 #include "chrome/test/sync/engine/test_directory_setter_upper.h" | 16 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h" |
17 | 17 |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using syncable::Blob; | 20 using syncable::Blob; |
21 using syncable::ScopedDirLookup; | 21 using syncable::ScopedDirLookup; |
22 using syncable::SyncName; | 22 using syncable::SyncName; |
23 | 23 |
24 namespace browser_sync { | 24 namespace browser_sync { |
25 | 25 |
26 TEST(SyncerProtoUtil, TestBlobToProtocolBufferBytesUtilityFunctions) { | 26 TEST(SyncerProtoUtil, TestBlobToProtocolBufferBytesUtilityFunctions) { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 dcm.set_send_error(false); | 233 dcm.set_send_error(false); |
234 EXPECT_TRUE(SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, | 234 EXPECT_TRUE(SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, |
235 msg, &response)); | 235 msg, &response)); |
236 | 236 |
237 dcm.set_access_denied(true); | 237 dcm.set_access_denied(true); |
238 EXPECT_FALSE(SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, | 238 EXPECT_FALSE(SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, |
239 msg, &response)); | 239 msg, &response)); |
240 } | 240 } |
241 | 241 |
242 } // namespace browser_sync | 242 } // namespace browser_sync |
OLD | NEW |