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

Side by Side Diff: components/sync_driver/model_association_manager_unittest.cc

Issue 1414233002: Unify include structure in //components/sync_driver unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698