OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/sessions/session_types.h" | 10 #include "chrome/browser/sessions/session_types.h" |
11 #include "chrome/browser/sync/glue/session_model_associator.h" | 11 #include "chrome/browser/sync/glue/session_model_associator.h" |
12 #include "chrome/common/page_transition_types.h" | |
13 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 13 #include "content/common/page_transition_types.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 using browser_sync::SessionModelAssociator; | 16 using browser_sync::SessionModelAssociator; |
17 using browser_sync::ForeignSessionTracker; | 17 using browser_sync::ForeignSessionTracker; |
18 namespace browser_sync { | 18 namespace browser_sync { |
19 | 19 |
20 typedef testing::Test SessionModelAssociatorTest; | 20 typedef testing::Test SessionModelAssociatorTest; |
21 | 21 |
22 TEST_F(SessionModelAssociatorTest, SessionWindowHasNoTabsToSync) { | 22 TEST_F(SessionModelAssociatorTest, SessionWindowHasNoTabsToSync) { |
23 SessionWindow win; | 23 SessionWindow win; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 ASSERT_FALSE(tracker.LookupAllForeignSessions(&sessions)); | 153 ASSERT_FALSE(tracker.LookupAllForeignSessions(&sessions)); |
154 | 154 |
155 tracker.clear(); | 155 tracker.clear(); |
156 ASSERT_EQ(0U, tracker.num_foreign_tabs(tag1)); | 156 ASSERT_EQ(0U, tracker.num_foreign_tabs(tag1)); |
157 ASSERT_EQ(0U, tracker.num_foreign_tabs(tag2)); | 157 ASSERT_EQ(0U, tracker.num_foreign_tabs(tag2)); |
158 ASSERT_EQ(0U, tracker.num_foreign_sessions()); | 158 ASSERT_EQ(0U, tracker.num_foreign_sessions()); |
159 } | 159 } |
160 | 160 |
161 } // namespace browser_sync | 161 } // namespace browser_sync |
162 | 162 |
OLD | NEW |