| 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/new_non_frontend_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/new_non_frontend_data_type_controller.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 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/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 using base::WaitableEvent; | 25 using base::WaitableEvent; |
| 26 using browser_sync::GenericChangeProcessor; | 26 using browser_sync::GenericChangeProcessor; |
| 27 using browser_sync::SharedChangeProcessorMock; | 27 using browser_sync::SharedChangeProcessorMock; |
| 28 using browser_sync::DataTypeController; | 28 using browser_sync::DataTypeController; |
| 29 using browser_sync::GROUP_DB; | 29 using browser_sync::GROUP_DB; |
| 30 using browser_sync::NewNonFrontendDataTypeController; | 30 using browser_sync::NewNonFrontendDataTypeController; |
| 31 using browser_sync::NewNonFrontendDataTypeControllerMock; | 31 using browser_sync::NewNonFrontendDataTypeControllerMock; |
| 32 using browser_sync::StartCallback; | 32 using browser_sync::StartCallback; |
| 33 using content::BrowserThread; |
| 33 using syncable::AUTOFILL_PROFILE; | 34 using syncable::AUTOFILL_PROFILE; |
| 34 using testing::_; | 35 using testing::_; |
| 35 using testing::DoAll; | 36 using testing::DoAll; |
| 36 using testing::InvokeWithoutArgs; | 37 using testing::InvokeWithoutArgs; |
| 37 using testing::Return; | 38 using testing::Return; |
| 38 using testing::SetArgumentPointee; | 39 using testing::SetArgumentPointee; |
| 39 using testing::StrictMock; | 40 using testing::StrictMock; |
| 40 | 41 |
| 41 namespace browser_sync { | 42 namespace browser_sync { |
| 42 | 43 |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 new_non_frontend_dtc_.get(), | 397 new_non_frontend_dtc_.get(), |
| 397 FROM_HERE, | 398 FROM_HERE, |
| 398 std::string("Test"))); | 399 std::string("Test"))); |
| 399 WaitForDTC(); | 400 WaitForDTC(); |
| 400 EXPECT_EQ(DataTypeController::NOT_RUNNING, new_non_frontend_dtc_->state()); | 401 EXPECT_EQ(DataTypeController::NOT_RUNNING, new_non_frontend_dtc_->state()); |
| 401 } | 402 } |
| 402 | 403 |
| 403 } // namespace | 404 } // namespace |
| 404 | 405 |
| 405 } // namespace browser_sync | 406 } // namespace browser_sync |
| OLD | NEW |