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 "chrome/browser/sync/glue/data_type_manager_impl.h" | 5 #include "chrome/browser/sync/glue/data_type_manager_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "chrome/browser/sync/engine/configure_reason.h" | 12 #include "chrome/browser/sync/engine/configure_reason.h" |
13 #include "chrome/browser/sync/glue/data_type_controller.h" | 13 #include "chrome/browser/sync/glue/data_type_controller.h" |
14 #include "chrome/browser/sync/glue/data_type_controller_mock.h" | 14 #include "chrome/browser/sync/glue/data_type_controller_mock.h" |
15 #include "chrome/browser/sync/glue/sync_backend_host_mock.h" | 15 #include "chrome/browser/sync/glue/sync_backend_host_mock.h" |
16 #include "chrome/browser/sync/profile_sync_test_util.h" | 16 #include "chrome/browser/sync/profile_sync_test_util.h" |
17 #include "chrome/browser/sync/syncable/model_type.h" | 17 #include "chrome/browser/sync/syncable/model_type.h" |
18 #include "chrome/common/chrome_notification_types.h" | 18 #include "chrome/common/chrome_notification_types.h" |
19 #include "chrome/test/testing_browser_process_test.h" | 19 #include "chrome/test/base/testing_browser_process_test.h" |
20 #include "content/browser/browser_thread.h" | 20 #include "content/browser/browser_thread.h" |
21 #include "content/common/notification_details.h" | 21 #include "content/common/notification_details.h" |
22 #include "content/common/notification_observer_mock.h" | 22 #include "content/common/notification_observer_mock.h" |
23 #include "content/common/notification_registrar.h" | 23 #include "content/common/notification_registrar.h" |
24 #include "content/common/notification_service.h" | 24 #include "content/common/notification_service.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
28 using browser_sync::DataTypeManager; | 28 using browser_sync::DataTypeManager; |
29 using browser_sync::DataTypeManagerImpl; | 29 using browser_sync::DataTypeManagerImpl; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 // are waiting for the download ready task to be run. | 510 // are waiting for the download ready task to be run. |
511 EXPECT_EQ(DataTypeManager::DOWNLOAD_PENDING, dtm.state()); | 511 EXPECT_EQ(DataTypeManager::DOWNLOAD_PENDING, dtm.state()); |
512 | 512 |
513 dtm.Stop(); | 513 dtm.Stop(); |
514 EXPECT_EQ(DataTypeManager::STOPPED, dtm.state()); | 514 EXPECT_EQ(DataTypeManager::STOPPED, dtm.state()); |
515 | 515 |
516 // It should be perfectly safe to run this task even though the DTM | 516 // It should be perfectly safe to run this task even though the DTM |
517 // has been stopped. | 517 // has been stopped. |
518 task.Run(true); | 518 task.Run(true); |
519 } | 519 } |
OLD | NEW |