| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/macros.h" |
| 5 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 6 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" | 7 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" |
| 7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 8 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 8 #include "chrome/browser/sync/test/integration/sessions_helper.h" | 9 #include "chrome/browser/sync/test/integration/sessions_helper.h" |
| 9 #include "chrome/browser/sync/test/integration/sync_test.h" | 10 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 10 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/browser/ui/browser_commands.h" | 12 #include "chrome/browser/ui/browser_commands.h" |
| 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 13 | 14 |
| 14 using content::OpenURLParams; | 15 using content::OpenURLParams; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 ASSERT_EQ(kNumTabs, GetTabCount(1)); | 133 ASSERT_EQ(kNumTabs, GetTabCount(1)); |
| 133 SyncTimingHelper::PrintResult("tabs", "update_tabs", dt); | 134 SyncTimingHelper::PrintResult("tabs", "update_tabs", dt); |
| 134 | 135 |
| 135 RemoveTabs(0); | 136 RemoveTabs(0); |
| 136 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); | 137 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); |
| 137 // New tab page remains open on profile 0 after closing all tabs. | 138 // New tab page remains open on profile 0 after closing all tabs. |
| 138 ASSERT_EQ(1, GetTabCount(0)); | 139 ASSERT_EQ(1, GetTabCount(0)); |
| 139 ASSERT_EQ(0, GetTabCount(1)); | 140 ASSERT_EQ(0, GetTabCount(1)); |
| 140 SyncTimingHelper::PrintResult("tabs", "delete_tabs", dt); | 141 SyncTimingHelper::PrintResult("tabs", "delete_tabs", dt); |
| 141 } | 142 } |
| OLD | NEW |