Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: components/sync/device_info/device_info_util_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698