Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "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/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
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/synchronization/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/sync/glue/autofill_data_type_controller.h" 13 #include "chrome/browser/sync/glue/autofill_data_type_controller.h"
14 #include "chrome/browser/sync/glue/change_processor_mock.h" 14 #include "chrome/browser/sync/glue/change_processor_mock.h"
15 #include "chrome/browser/sync/glue/model_associator_mock.h" 15 #include "chrome/browser/sync/glue/model_associator_mock.h"
16 #include "chrome/browser/sync/profile_sync_factory_mock.h" 16 #include "chrome/browser/sync/profile_sync_factory_mock.h"
17 #include "chrome/browser/sync/profile_sync_service_mock.h" 17 #include "chrome/browser/sync/profile_sync_service_mock.h"
18 #include "chrome/browser/sync/profile_sync_test_util.h" 18 #include "chrome/browser/sync/profile_sync_test_util.h"
19 #include "chrome/browser/webdata/web_data_service.h" 19 #include "chrome/browser/webdata/web_data_service.h"
20 #include "chrome/test/base/profile_mock.h" 20 #include "chrome/test/base/profile_mock.h"
21 #include "chrome/test/testing_browser_process_test.h" 21 #include "chrome/test/base/testing_browser_process_test.h"
22 #include "content/browser/browser_thread.h" 22 #include "content/browser/browser_thread.h"
23 #include "content/common/content_notification_types.h" 23 #include "content/common/content_notification_types.h"
24 #include "content/common/notification_source.h" 24 #include "content/common/notification_source.h"
25 #include "testing/gmock/include/gmock/gmock.h" 25 #include "testing/gmock/include/gmock/gmock.h"
26 26
27 using base::WaitableEvent; 27 using base::WaitableEvent;
28 using browser_sync::AutofillDataTypeController; 28 using browser_sync::AutofillDataTypeController;
29 using browser_sync::ChangeProcessorMock; 29 using browser_sync::ChangeProcessorMock;
30 using browser_sync::DataTypeController; 30 using browser_sync::DataTypeController;
31 using browser_sync::ModelAssociatorMock; 31 using browser_sync::ModelAssociatorMock;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 wait_for_db_thread_pause.Wait(); 280 wait_for_db_thread_pause.Wait();
281 EXPECT_EQ(DataTypeController::ASSOCIATING, autofill_dtc_->state()); 281 EXPECT_EQ(DataTypeController::ASSOCIATING, autofill_dtc_->state());
282 282
283 SetStopExpectations(); 283 SetStopExpectations();
284 EXPECT_CALL(start_callback_, Run(DataTypeController::ABORTED, _)); 284 EXPECT_CALL(start_callback_, Run(DataTypeController::ABORTED, _));
285 autofill_dtc_->Stop(); 285 autofill_dtc_->Stop();
286 EXPECT_EQ(DataTypeController::NOT_RUNNING, autofill_dtc_->state()); 286 EXPECT_EQ(DataTypeController::NOT_RUNNING, autofill_dtc_->state());
287 } 287 }
288 288
289 } // namespace 289 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/sync/backend_migrator_unittest.cc ('k') | chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698