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

Side by Side Diff: components/sync_sessions/revisit/offset_tab_matcher_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_sessions/revisit/offset_tab_matcher.h" 5 #include "components/sync_sessions/revisit/offset_tab_matcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/test/histogram_tester.h" 10 #include "base/test/histogram_tester.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "components/sessions/core/serialized_navigation_entry.h" 12 #include "components/sessions/core/serialized_navigation_entry.h"
13 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" 13 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
14 #include "components/sessions/core/session_types.h" 14 #include "components/sessions/core/session_types.h"
15 #include "components/sync_sessions/revisit/page_equality.h"
16 #include "components/sync_sessions/revisit/page_visit_observer.h"
17 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
18 #include "url/gurl.h" 16 #include "url/gurl.h"
19 17
20 using sessions::SessionTab; 18 using sessions::SessionTab;
21 19
22 namespace sync_sessions { 20 namespace sync_sessions {
23 21
24 namespace { 22 namespace {
25 23
26 static const std::string kExampleUrl = "http://www.example.com"; 24 static const std::string kExampleUrl = "http://www.example.com";
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 tab2->navigations.push_back(Entry(kExampleUrl)); 179 tab2->navigations.push_back(Entry(kExampleUrl));
182 tab2->navigations.push_back(Entry(kExampleUrl)); 180 tab2->navigations.push_back(Entry(kExampleUrl));
183 181
184 OffsetTabMatcher matcher((PageEquality(GURL(kExampleUrl)))); 182 OffsetTabMatcher matcher((PageEquality(GURL(kExampleUrl))));
185 matcher.Check(tab1.get()); 183 matcher.Check(tab1.get());
186 matcher.Check(tab2.get()); 184 matcher.Check(tab2.get());
187 VerifyMatch(&matcher, 1); 185 VerifyMatch(&matcher, 1);
188 } 186 }
189 187
190 } // namespace sync_sessions 188 } // namespace sync_sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698