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

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

Issue 1443453002: [Sync] Move sessions files from sync_driver to sync_sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ui/gfx deps. Created 5 years, 1 month 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 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/test/histogram_tester.h" 10 #include "base/test/histogram_tester.h"
11 #include "components/sessions/core/serialized_navigation_entry.h" 11 #include "components/sessions/core/serialized_navigation_entry.h"
12 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" 12 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
13 #include "components/sessions/core/session_types.h" 13 #include "components/sessions/core/session_types.h"
14 #include "components/sync_driver/glue/synced_session.h"
15 #include "components/sync_sessions/revisit/page_visit_observer.h" 14 #include "components/sync_sessions/revisit/page_visit_observer.h"
15 #include "components/sync_sessions/synced_session.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 using sessions::SessionTab; 19 using sessions::SessionTab;
20 using sessions::SessionWindow; 20 using sessions::SessionWindow;
21 using sync_driver::SyncedSession; 21 using sync_driver::SyncedSession;
22 22
23 namespace sync_sessions { 23 namespace sync_sessions {
24 24
25 namespace { 25 namespace {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 sessions.push_back(session1.get()); 188 sessions.push_back(session1.get());
189 sessions.push_back(session2.get()); 189 sessions.push_back(session2.get());
190 SessionsPageRevisitObserver observer( 190 SessionsPageRevisitObserver observer(
191 make_scoped_ptr(new TestForeignSessionsProvider(sessions, true))); 191 make_scoped_ptr(new TestForeignSessionsProvider(sessions, true)));
192 192
193 base::HistogramTester histogram_tester; 193 base::HistogramTester histogram_tester;
194 CheckAndExpect(&observer, GURL(kExampleUrl), true, true); 194 CheckAndExpect(&observer, GURL(kExampleUrl), true, true);
195 } 195 }
196 196
197 } // namespace sync_sessions 197 } // namespace sync_sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698