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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "base/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "chrome/browser/autofill/personal_data_manager.h" | 12 #include "chrome/browser/autofill/personal_data_manager.h" |
13 #include "chrome/browser/browser_thread.h" | 13 #include "chrome/browser/browser_thread.h" |
14 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" | 14 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" |
15 #include "chrome/browser/sync/glue/change_processor_mock.h" | 15 #include "chrome/browser/sync/glue/change_processor_mock.h" |
16 #include "chrome/browser/sync/glue/model_associator_mock.h" | 16 #include "chrome/browser/sync/glue/model_associator_mock.h" |
17 #include "chrome/browser/sync/profile_sync_factory_mock.h" | 17 #include "chrome/browser/sync/profile_sync_factory_mock.h" |
18 #include "chrome/browser/sync/profile_sync_service_mock.h" | 18 #include "chrome/browser/sync/profile_sync_service_mock.h" |
19 #include "chrome/browser/sync/profile_sync_test_util.h" | 19 #include "chrome/browser/sync/profile_sync_test_util.h" |
20 #include "chrome/browser/webdata/web_data_service.h" | 20 #include "chrome/browser/webdata/web_data_service.h" |
21 #include "chrome/common/notification_source.h" | 21 #include "chrome/common/notification_source.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 wait_for_db_thread_pause.Wait(); | 272 wait_for_db_thread_pause.Wait(); |
273 EXPECT_EQ(DataTypeController::ASSOCIATING, autofill_dtc_->state()); | 273 EXPECT_EQ(DataTypeController::ASSOCIATING, autofill_dtc_->state()); |
274 | 274 |
275 SetStopExpectations(); | 275 SetStopExpectations(); |
276 EXPECT_CALL(start_callback_, Run(DataTypeController::ABORTED)); | 276 EXPECT_CALL(start_callback_, Run(DataTypeController::ABORTED)); |
277 autofill_dtc_->Stop(); | 277 autofill_dtc_->Stop(); |
278 EXPECT_EQ(DataTypeController::NOT_RUNNING, autofill_dtc_->state()); | 278 EXPECT_EQ(DataTypeController::NOT_RUNNING, autofill_dtc_->state()); |
279 } | 279 } |
280 | 280 |
281 } // namespace | 281 } // namespace |
OLD | NEW |