| 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 <map> | 5 #include <map> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/sync/protocol/session_specifics.pb.h" | 23 #include "chrome/browser/sync/protocol/session_specifics.pb.h" |
| 24 #include "chrome/browser/sync/protocol/sync.pb.h" | 24 #include "chrome/browser/sync/protocol/sync.pb.h" |
| 25 #include "chrome/browser/sync/syncable/directory_manager.h" | 25 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 26 #include "chrome/browser/sync/syncable/model_type.h" | 26 #include "chrome/browser/sync/syncable/model_type.h" |
| 27 #include "chrome/browser/sync/syncable/syncable.h" | 27 #include "chrome/browser/sync/syncable/syncable.h" |
| 28 #include "chrome/browser/sync/test_profile_sync_service.h" | 28 #include "chrome/browser/sync/test_profile_sync_service.h" |
| 29 #include "chrome/common/net/gaia/gaia_constants.h" | 29 #include "chrome/common/net/gaia/gaia_constants.h" |
| 30 #include "chrome/common/notification_observer.h" | 30 #include "chrome/common/notification_observer.h" |
| 31 #include "chrome/common/notification_registrar.h" | 31 #include "chrome/common/notification_registrar.h" |
| 32 #include "chrome/common/notification_service.h" | 32 #include "chrome/common/notification_service.h" |
| 33 #include "chrome/common/pref_names.h" | |
| 34 #include "chrome/test/browser_with_test_window_test.h" | 33 #include "chrome/test/browser_with_test_window_test.h" |
| 35 #include "chrome/test/file_test_utils.h" | 34 #include "chrome/test/file_test_utils.h" |
| 36 #include "chrome/test/profile_mock.h" | 35 #include "chrome/test/profile_mock.h" |
| 37 #include "chrome/test/testing_profile.h" | 36 #include "chrome/test/testing_profile.h" |
| 38 #include "chrome/test/sync/engine/test_id_factory.h" | 37 #include "chrome/test/sync/engine/test_id_factory.h" |
| 39 #include "testing/gmock/include/gmock/gmock.h" | 38 #include "testing/gmock/include/gmock/gmock.h" |
| 40 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
| 41 | 40 |
| 42 using browser_sync::SessionChangeProcessor; | 41 using browser_sync::SessionChangeProcessor; |
| 43 using browser_sync::SessionDataTypeController; | 42 using browser_sync::SessionDataTypeController; |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 ASSERT_FALSE(model_associator_->tab_pool_.full()); | 417 ASSERT_FALSE(model_associator_->tab_pool_.full()); |
| 419 for (size_t i = 0; i < num_ids; ++i) { | 418 for (size_t i = 0; i < num_ids; ++i) { |
| 420 model_associator_->tab_pool_.FreeTabNode(node_ids[i]); | 419 model_associator_->tab_pool_.FreeTabNode(node_ids[i]); |
| 421 } | 420 } |
| 422 ASSERT_EQ(num_ids, model_associator_->tab_pool_.capacity()); | 421 ASSERT_EQ(num_ids, model_associator_->tab_pool_.capacity()); |
| 423 ASSERT_FALSE(model_associator_->tab_pool_.empty()); | 422 ASSERT_FALSE(model_associator_->tab_pool_.empty()); |
| 424 ASSERT_TRUE(model_associator_->tab_pool_.full()); | 423 ASSERT_TRUE(model_associator_->tab_pool_.full()); |
| 425 } | 424 } |
| 426 | 425 |
| 427 } // namespace browser_sync | 426 } // namespace browser_sync |
| 428 | |
| OLD | NEW |