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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/sync/internal_api/sync_manager.h" | 24 #include "chrome/browser/sync/internal_api/sync_manager.h" |
25 #include "chrome/browser/sync/internal_api/write_transaction.h" | 25 #include "chrome/browser/sync/internal_api/write_transaction.h" |
26 #include "chrome/browser/sync/profile_sync_factory_mock.h" | 26 #include "chrome/browser/sync/profile_sync_factory_mock.h" |
27 #include "chrome/browser/sync/profile_sync_test_util.h" | 27 #include "chrome/browser/sync/profile_sync_test_util.h" |
28 #include "chrome/browser/sync/protocol/session_specifics.pb.h" | 28 #include "chrome/browser/sync/protocol/session_specifics.pb.h" |
29 #include "chrome/browser/sync/protocol/sync.pb.h" | 29 #include "chrome/browser/sync/protocol/sync.pb.h" |
30 #include "chrome/browser/sync/syncable/directory_manager.h" | 30 #include "chrome/browser/sync/syncable/directory_manager.h" |
31 #include "chrome/browser/sync/syncable/model_type.h" | 31 #include "chrome/browser/sync/syncable/model_type.h" |
32 #include "chrome/browser/sync/syncable/syncable.h" | 32 #include "chrome/browser/sync/syncable/syncable.h" |
33 #include "chrome/browser/sync/test_profile_sync_service.h" | 33 #include "chrome/browser/sync/test_profile_sync_service.h" |
| 34 #include "chrome/browser/sync/test/engine/test_id_factory.h" |
34 #include "chrome/common/chrome_notification_types.h" | 35 #include "chrome/common/chrome_notification_types.h" |
35 #include "chrome/common/net/gaia/gaia_constants.h" | 36 #include "chrome/common/net/gaia/gaia_constants.h" |
36 #include "chrome/test/base/browser_with_test_window_test.h" | 37 #include "chrome/test/base/browser_with_test_window_test.h" |
37 #include "chrome/test/base/profile_mock.h" | 38 #include "chrome/test/base/profile_mock.h" |
38 #include "chrome/test/base/testing_profile.h" | 39 #include "chrome/test/base/testing_profile.h" |
39 #include "chrome/test/sync/engine/test_id_factory.h" | |
40 #include "content/browser/browser_thread.h" | 40 #include "content/browser/browser_thread.h" |
41 #include "content/common/notification_observer.h" | 41 #include "content/common/notification_observer.h" |
42 #include "content/common/notification_registrar.h" | 42 #include "content/common/notification_registrar.h" |
43 #include "content/common/notification_service.h" | 43 #include "content/common/notification_service.h" |
44 #include "testing/gmock/include/gmock/gmock.h" | 44 #include "testing/gmock/include/gmock/gmock.h" |
45 #include "testing/gtest/include/gtest/gtest.h" | 45 #include "testing/gtest/include/gtest/gtest.h" |
46 #include "ui/base/ui_base_types.h" | 46 #include "ui/base/ui_base_types.h" |
47 | 47 |
48 using browser_sync::SessionChangeProcessor; | 48 using browser_sync::SessionChangeProcessor; |
49 using browser_sync::SessionDataTypeController; | 49 using browser_sync::SessionDataTypeController; |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 ASSERT_FALSE(model_associator_->tab_pool_.full()); | 447 ASSERT_FALSE(model_associator_->tab_pool_.full()); |
448 for (size_t i = 0; i < num_ids; ++i) { | 448 for (size_t i = 0; i < num_ids; ++i) { |
449 model_associator_->tab_pool_.FreeTabNode(node_ids[i]); | 449 model_associator_->tab_pool_.FreeTabNode(node_ids[i]); |
450 } | 450 } |
451 ASSERT_EQ(num_ids, model_associator_->tab_pool_.capacity()); | 451 ASSERT_EQ(num_ids, model_associator_->tab_pool_.capacity()); |
452 ASSERT_FALSE(model_associator_->tab_pool_.empty()); | 452 ASSERT_FALSE(model_associator_->tab_pool_.empty()); |
453 ASSERT_TRUE(model_associator_->tab_pool_.full()); | 453 ASSERT_TRUE(model_associator_->tab_pool_.full()); |
454 } | 454 } |
455 | 455 |
456 } // namespace browser_sync | 456 } // namespace browser_sync |
OLD | NEW |