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_driver/device_info_util.h" | 5 #include "components/sync/driver/device_info_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "components/sync/protocol/sync.pb.h" | 9 #include "components/sync/protocol/sync.pb.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 using base::Time; | 12 using base::Time; |
13 using base::TimeDelta; | 13 using base::TimeDelta; |
14 using sync_pb::DeviceInfoSpecifics; | 14 using sync_pb::DeviceInfoSpecifics; |
15 | 15 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 ASSERT_EQ(cache_guid, DeviceInfoUtil::TagToCacheGuid( | 104 ASSERT_EQ(cache_guid, DeviceInfoUtil::TagToCacheGuid( |
105 DeviceInfoUtil::SpecificsToTag(specifics))); | 105 DeviceInfoUtil::SpecificsToTag(specifics))); |
106 | 106 |
107 specifics.set_cache_guid(DeviceInfoUtil::kClientTagPrefix); | 107 specifics.set_cache_guid(DeviceInfoUtil::kClientTagPrefix); |
108 ASSERT_EQ(DeviceInfoUtil::kClientTagPrefix, | 108 ASSERT_EQ(DeviceInfoUtil::kClientTagPrefix, |
109 DeviceInfoUtil::TagToCacheGuid( | 109 DeviceInfoUtil::TagToCacheGuid( |
110 DeviceInfoUtil::SpecificsToTag(specifics))); | 110 DeviceInfoUtil::SpecificsToTag(specifics))); |
111 } | 111 } |
112 | 112 |
113 } // namespace sync_driver | 113 } // namespace sync_driver |
OLD | NEW |