| 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" | 12 #include "chrome/common/page_transition_types.h" |
| 13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/test/testing_profile.h" | |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 15 |
| 17 using browser_sync::SessionModelAssociator; | 16 using browser_sync::SessionModelAssociator; |
| 18 using browser_sync::ForeignSessionTracker; | 17 using browser_sync::ForeignSessionTracker; |
| 19 namespace browser_sync { | 18 namespace browser_sync { |
| 20 | 19 |
| 21 typedef testing::Test SessionModelAssociatorTest; | 20 typedef testing::Test SessionModelAssociatorTest; |
| 22 | 21 |
| 23 TEST_F(SessionModelAssociatorTest, SessionWindowHasNoTabsToSync) { | 22 TEST_F(SessionModelAssociatorTest, SessionWindowHasNoTabsToSync) { |
| 24 SessionWindow win; | 23 SessionWindow win; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 ASSERT_FALSE(tracker.LookupAllForeignSessions(&sessions)); | 153 ASSERT_FALSE(tracker.LookupAllForeignSessions(&sessions)); |
| 155 | 154 |
| 156 tracker.clear(); | 155 tracker.clear(); |
| 157 ASSERT_EQ(0U, tracker.num_foreign_tabs(tag1)); | 156 ASSERT_EQ(0U, tracker.num_foreign_tabs(tag1)); |
| 158 ASSERT_EQ(0U, tracker.num_foreign_tabs(tag2)); | 157 ASSERT_EQ(0U, tracker.num_foreign_tabs(tag2)); |
| 159 ASSERT_EQ(0U, tracker.num_foreign_sessions()); | 158 ASSERT_EQ(0U, tracker.num_foreign_sessions()); |
| 160 } | 159 } |
| 161 | 160 |
| 162 } // namespace browser_sync | 161 } // namespace browser_sync |
| 163 | 162 |
| OLD | NEW |