| 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/backup_rollback_controller.h" | 5 #include "components/sync_driver/backup_rollback_controller.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 8 #include "base/location.h" | 10 #include "base/location.h" |
| 9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 11 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 12 #include "components/sync_driver/signin_manager_wrapper.h" | 14 #include "components/sync_driver/signin_manager_wrapper.h" |
| 13 #include "components/sync_driver/sync_driver_switches.h" | 15 #include "components/sync_driver/sync_driver_switches.h" |
| 14 #include "components/sync_driver/sync_prefs.h" | 16 #include "components/sync_driver/sync_prefs.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 EXPECT_FALSE(controller_->StartRollback()); | 138 EXPECT_FALSE(controller_->StartRollback()); |
| 137 EXPECT_EQ(0, fake_prefs_.GetRemainingRollbackTries()); | 139 EXPECT_EQ(0, fake_prefs_.GetRemainingRollbackTries()); |
| 138 | 140 |
| 139 PumpLoop(); | 141 PumpLoop(); |
| 140 EXPECT_FALSE(rollback_started_); | 142 EXPECT_FALSE(rollback_started_); |
| 141 } | 143 } |
| 142 | 144 |
| 143 #endif | 145 #endif |
| 144 | 146 |
| 145 } // anonymous namespace | 147 } // anonymous namespace |
| OLD | NEW |