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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/test/notification_observer_mock.h" | 23 #include "content/test/notification_observer_mock.h" |
24 #include "content/test/test_browser_thread.h" | 24 #include "content/test/test_browser_thread.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; |
30 using browser_sync::DataTypeController; | 30 using browser_sync::DataTypeController; |
31 using browser_sync::DataTypeControllerMock; | 31 using browser_sync::DataTypeControllerMock; |
32 using browser_sync::SyncBackendHostMock; | 32 using browser_sync::SyncBackendHostMock; |
| 33 using content::BrowserThread; |
33 using testing::_; | 34 using testing::_; |
34 using testing::AtLeast; | 35 using testing::AtLeast; |
35 using testing::DoAll; | 36 using testing::DoAll; |
36 using testing::DoDefault; | 37 using testing::DoDefault; |
37 using testing::InSequence; | 38 using testing::InSequence; |
38 using testing::Invoke; | 39 using testing::Invoke; |
39 using testing::InvokeWithoutArgs; | 40 using testing::InvokeWithoutArgs; |
40 using testing::InvokeWithoutArgs; | 41 using testing::InvokeWithoutArgs; |
41 using testing::Mock; | 42 using testing::Mock; |
42 using testing::NiceMock; | 43 using testing::NiceMock; |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 // are waiting for the download ready task to be run. | 602 // are waiting for the download ready task to be run. |
602 EXPECT_EQ(DataTypeManager::DOWNLOAD_PENDING, dtm.state()); | 603 EXPECT_EQ(DataTypeManager::DOWNLOAD_PENDING, dtm.state()); |
603 | 604 |
604 dtm.Stop(); | 605 dtm.Stop(); |
605 EXPECT_EQ(DataTypeManager::STOPPED, dtm.state()); | 606 EXPECT_EQ(DataTypeManager::STOPPED, dtm.state()); |
606 | 607 |
607 // It should be perfectly safe to run this task even though the DTM | 608 // It should be perfectly safe to run this task even though the DTM |
608 // has been stopped. | 609 // has been stopped. |
609 task.Run(true); | 610 task.Run(true); |
610 } | 611 } |
OLD | NEW |