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

Side by Side Diff: components/sync_sessions/revisit/sessions_page_revisit_observer_unittest.cc

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated 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 <string> 7 #include <string>
8 #include <utility>
8 9
9 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
10 #include "base/test/histogram_tester.h" 11 #include "base/test/histogram_tester.h"
11 #include "components/sessions/core/serialized_navigation_entry.h" 12 #include "components/sessions/core/serialized_navigation_entry.h"
12 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" 13 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
13 #include "components/sessions/core/session_types.h" 14 #include "components/sessions/core/session_types.h"
14 #include "components/sync_sessions/synced_session.h" 15 #include "components/sync_sessions/synced_session.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include "url/gurl.h" 17 #include "url/gurl.h"
17 18
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 sessions.push_back(session1.get()); 187 sessions.push_back(session1.get());
187 sessions.push_back(session2.get()); 188 sessions.push_back(session2.get());
188 SessionsPageRevisitObserver observer( 189 SessionsPageRevisitObserver observer(
189 base::MakeUnique<TestForeignSessionsProvider>(sessions, true)); 190 base::MakeUnique<TestForeignSessionsProvider>(sessions, true));
190 191
191 base::HistogramTester histogram_tester; 192 base::HistogramTester histogram_tester;
192 CheckAndExpect(&observer, GURL(kExampleUrl), true, true); 193 CheckAndExpect(&observer, GURL(kExampleUrl), true, true);
193 } 194 }
194 195
195 } // namespace sync_sessions 196 } // namespace sync_sessions
OLDNEW
« no previous file with comments | « components/sync_sessions/revisit/offset_tab_matcher_unittest.cc ('k') | components/sync_sessions/synced_session_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698