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

Side by Side Diff: components/sync_sessions/revisit/sessions_page_revisit_observer_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/sessions_page_revisit_observer.h" 5 #include "components/sync_sessions/revisit/sessions_page_revisit_observer.h"
6 6
7 #include <memory>
8 #include <string> 7 #include <string>
9 8
10 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
11 #include "base/test/histogram_tester.h" 10 #include "base/test/histogram_tester.h"
12 #include "components/sessions/core/serialized_navigation_entry.h" 11 #include "components/sessions/core/serialized_navigation_entry.h"
13 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" 12 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
14 #include "components/sessions/core/session_types.h" 13 #include "components/sessions/core/session_types.h"
15 #include "components/sync_sessions/revisit/page_visit_observer.h"
16 #include "components/sync_sessions/synced_session.h" 14 #include "components/sync_sessions/synced_session.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 using sessions::SessionWindow; 19 using sessions::SessionWindow;
22 20
23 namespace sync_sessions { 21 namespace sync_sessions {
24 22
25 namespace { 23 namespace {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 sessions.push_back(session1.get()); 186 sessions.push_back(session1.get());
189 sessions.push_back(session2.get()); 187 sessions.push_back(session2.get());
190 SessionsPageRevisitObserver observer( 188 SessionsPageRevisitObserver observer(
191 base::MakeUnique<TestForeignSessionsProvider>(sessions, true)); 189 base::MakeUnique<TestForeignSessionsProvider>(sessions, true));
192 190
193 base::HistogramTester histogram_tester; 191 base::HistogramTester histogram_tester;
194 CheckAndExpect(&observer, GURL(kExampleUrl), true, true); 192 CheckAndExpect(&observer, GURL(kExampleUrl), true, true);
195 } 193 }
196 194
197 } // namespace sync_sessions 195 } // namespace sync_sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698