| 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 #include "components/sync/syncable/syncable_id.h" | 5 #include "components/sync/syncable/syncable_id.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/test/values_test_util.h" | 9 #include "base/test/values_test_util.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ASSERT_GT(j->GetLexicographicSuccessor(), *i); | 76 ASSERT_GT(j->GetLexicographicSuccessor(), *i); |
| 77 ASSERT_GT(j->GetLexicographicSuccessor(), | 77 ASSERT_GT(j->GetLexicographicSuccessor(), |
| 78 i->GetLexicographicSuccessor()); | 78 i->GetLexicographicSuccessor()); |
| 79 ASSERT_GT(*j, i->GetLexicographicSuccessor()); | 79 ASSERT_GT(*j, i->GetLexicographicSuccessor()); |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 | 84 |
| 85 TEST(SyncableIdTest, ToValue) { | 85 TEST(SyncableIdTest, ToValue) { |
| 86 base::ExpectStringValue("r", Id::CreateFromServerId("0").ToValue()); | 86 base::ExpectStringValue("r", *Id::CreateFromServerId("0").ToValue()); |
| 87 base::ExpectStringValue("svalue", Id::CreateFromServerId("value").ToValue()); | 87 base::ExpectStringValue("svalue", *Id::CreateFromServerId("value").ToValue()); |
| 88 | 88 |
| 89 base::ExpectStringValue("r", Id::CreateFromClientString("0").ToValue()); | 89 base::ExpectStringValue("r", *Id::CreateFromClientString("0").ToValue()); |
| 90 base::ExpectStringValue("cvalue", | 90 base::ExpectStringValue("cvalue", |
| 91 Id::CreateFromClientString("value").ToValue()); | 91 *Id::CreateFromClientString("value").ToValue()); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace syncable | 94 } // namespace syncable |
| 95 } // namespace syncer | 95 } // namespace syncer |
| OLD | NEW |