OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/device_info/device_info_util.h" | 5 #include "components/sync/device_info/device_info_util.h" |
6 | 6 |
7 #include <string> | |
8 | |
9 #include "components/sync/protocol/sync.pb.h" | 7 #include "components/sync/protocol/sync.pb.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
11 | 9 |
12 using base::Time; | 10 using base::Time; |
13 using base::TimeDelta; | 11 using base::TimeDelta; |
14 using sync_pb::DeviceInfoSpecifics; | 12 using sync_pb::DeviceInfoSpecifics; |
15 | 13 |
16 namespace syncer { | 14 namespace syncer { |
17 | 15 |
18 namespace { | 16 namespace { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 ASSERT_EQ(cache_guid, DeviceInfoUtil::TagToCacheGuid( | 102 ASSERT_EQ(cache_guid, DeviceInfoUtil::TagToCacheGuid( |
105 DeviceInfoUtil::SpecificsToTag(specifics))); | 103 DeviceInfoUtil::SpecificsToTag(specifics))); |
106 | 104 |
107 specifics.set_cache_guid(DeviceInfoUtil::kClientTagPrefix); | 105 specifics.set_cache_guid(DeviceInfoUtil::kClientTagPrefix); |
108 ASSERT_EQ(DeviceInfoUtil::kClientTagPrefix, | 106 ASSERT_EQ(DeviceInfoUtil::kClientTagPrefix, |
109 DeviceInfoUtil::TagToCacheGuid( | 107 DeviceInfoUtil::TagToCacheGuid( |
110 DeviceInfoUtil::SpecificsToTag(specifics))); | 108 DeviceInfoUtil::SpecificsToTag(specifics))); |
111 } | 109 } |
112 | 110 |
113 } // namespace syncer | 111 } // namespace syncer |
OLD | NEW |