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

Side by Side Diff: components/sync_driver/revisit/current_tab_matcher_unittest.cc

Issue 1361613002: Move all core files in //components/sessions into core/ subdir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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_driver/revisit/current_tab_matcher.h" 5 #include "components/sync_driver/revisit/current_tab_matcher.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/test/histogram_tester.h" 8 #include "base/test/histogram_tester.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "components/sessions/serialized_navigation_entry.h" 10 #include "components/sessions/core/serialized_navigation_entry.h"
11 #include "components/sessions/serialized_navigation_entry_test_helper.h" 11 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
12 #include "components/sessions/session_types.h" 12 #include "components/sessions/core/session_types.h"
13 #include "components/sync_driver/revisit/page_equality.h" 13 #include "components/sync_driver/revisit/page_equality.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 using sessions::SessionTab; 17 using sessions::SessionTab;
18 18
19 namespace sync_driver { 19 namespace sync_driver {
20 20
21 namespace { 21 namespace {
22 22
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ASSERT_EQ(tab2.get(), matcher1.most_recent_match_); 105 ASSERT_EQ(tab2.get(), matcher1.most_recent_match_);
106 106
107 // Now repeat the same test but check the tabs in the opposite order. 107 // Now repeat the same test but check the tabs in the opposite order.
108 CurrentTabMatcher matcher2((PageEquality(GURL(kExampleUrl)))); 108 CurrentTabMatcher matcher2((PageEquality(GURL(kExampleUrl))));
109 matcher2.Check(tab2.get()); 109 matcher2.Check(tab2.get());
110 matcher2.Check(tab1.get()); 110 matcher2.Check(tab1.get());
111 ASSERT_EQ(tab2.get(), matcher2.most_recent_match_); 111 ASSERT_EQ(tab2.get(), matcher2.most_recent_match_);
112 } 112 }
113 113
114 } // namespace sync_driver 114 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/revisit/current_tab_matcher.cc ('k') | components/sync_driver/revisit/offset_tab_matcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698