OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/sync_driver/model_association_manager.h" |
| 6 |
5 #include "base/callback.h" | 7 #include "base/callback.h" |
6 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
7 #include "components/sync_driver/fake_data_type_controller.h" | 9 #include "components/sync_driver/fake_data_type_controller.h" |
8 #include "components/sync_driver/model_association_manager.h" | |
9 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 using ::testing::_; | 13 using ::testing::_; |
13 | 14 |
14 namespace sync_driver { | 15 namespace sync_driver { |
15 | 16 |
16 class MockModelAssociationManagerDelegate : | 17 class MockModelAssociationManagerDelegate : |
17 public ModelAssociationManagerDelegate { | 18 public ModelAssociationManagerDelegate { |
18 public: | 19 public: |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 378 |
378 EXPECT_CALL(delegate_, | 379 EXPECT_CALL(delegate_, |
379 OnSingleDataTypeWillStop(syncer::BOOKMARKS, _)); | 380 OnSingleDataTypeWillStop(syncer::BOOKMARKS, _)); |
380 model_association_manager.GetTimerForTesting()->user_task().Run(); | 381 model_association_manager.GetTimerForTesting()->user_task().Run(); |
381 | 382 |
382 EXPECT_EQ(DataTypeController::NOT_RUNNING, | 383 EXPECT_EQ(DataTypeController::NOT_RUNNING, |
383 GetController(controllers_, syncer::BOOKMARKS)->state()); | 384 GetController(controllers_, syncer::BOOKMARKS)->state()); |
384 } | 385 } |
385 | 386 |
386 } // namespace sync_driver | 387 } // namespace sync_driver |
OLD | NEW |