OLD | NEW |
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 // Keep this file in sync with the .proto files in this directory. | 5 // Keep this file in sync with the .proto files in this directory. |
6 | 6 |
7 #include "sync/protocol/proto_value_conversions.h" | 7 #include "sync/protocol/proto_value_conversions.h" |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 EXPECT_TRUE(ValueHasSpecifics(*(value_with_specifics.get()), | 361 EXPECT_TRUE(ValueHasSpecifics(*(value_with_specifics.get()), |
362 "get_updates.entries")); | 362 "get_updates.entries")); |
363 | 363 |
364 scoped_ptr<base::DictionaryValue> value_without_specifics( | 364 scoped_ptr<base::DictionaryValue> value_without_specifics( |
365 ClientToServerResponseToValue(message, false /* include_specifics */)); | 365 ClientToServerResponseToValue(message, false /* include_specifics */)); |
366 EXPECT_FALSE(value_without_specifics->empty()); | 366 EXPECT_FALSE(value_without_specifics->empty()); |
367 EXPECT_FALSE(ValueHasSpecifics(*(value_without_specifics.get()), | 367 EXPECT_FALSE(ValueHasSpecifics(*(value_without_specifics.get()), |
368 "get_updates.entries")); | 368 "get_updates.entries")); |
369 } | 369 } |
370 | 370 |
| 371 TEST_F(ProtoValueConversionsTest, AttachmentIdProtoToValue) { |
| 372 TestSpecificsToValue(AttachmentIdProtoToValue); |
| 373 } |
| 374 |
371 } // namespace | 375 } // namespace |
372 } // namespace syncer | 376 } // namespace syncer |
OLD | NEW |