| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/profile_resetter/automatic_profile_resetter.h" | 5 #include "chrome/browser/profile_resetter/automatic_profile_resetter.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
| 12 #include "base/prefs/pref_registry_simple.h" | 12 #include "base/prefs/pref_registry_simple.h" |
| 13 #include "base/prefs/testing_pref_service.h" | 13 #include "base/prefs/testing_pref_service.h" |
| 14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
| 16 #include "base/threading/sequenced_worker_pool.h" | 16 #include "base/threading/sequenced_worker_pool.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/browser/profile_resetter/automatic_profile_resetter_delegate.h" | 18 #include "chrome/browser/profile_resetter/automatic_profile_resetter_delegate.h" |
| 19 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" | 19 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" |
| 20 #include "chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h" | 20 #include "chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h" |
| 21 #include "chrome/browser/profile_resetter/jtl_foundation.h" | 21 #include "chrome/browser/profile_resetter/jtl_foundation.h" |
| 22 #include "chrome/browser/profile_resetter/jtl_instructions.h" | 22 #include "chrome/browser/profile_resetter/jtl_instructions.h" |
| 23 #include "chrome/test/base/scoped_testing_local_state.h" | 23 #include "chrome/test/base/scoped_testing_local_state.h" |
| 24 #include "chrome/test/base/testing_browser_process.h" | 24 #include "chrome/test/base/testing_browser_process.h" |
| 25 #include "chrome/test/base/testing_pref_service_syncable.h" | |
| 26 #include "chrome/test/base/testing_profile.h" | 25 #include "chrome/test/base/testing_profile.h" |
| 27 #include "components/pref_registry/pref_registry_syncable.h" | 26 #include "components/pref_registry/pref_registry_syncable.h" |
| 27 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
| 28 #include "components/variations/variations_associated_data.h" | 28 #include "components/variations/variations_associated_data.h" |
| 29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
| 30 #include "content/public/test/test_browser_thread_bundle.h" | 30 #include "content/public/test/test_browser_thread_bundle.h" |
| 31 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 33 | 33 |
| 34 using testing::_; | 34 using testing::_; |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| (...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 mock_delegate().ExpectCallsToDependenciesSetUpMethods(); | 1367 mock_delegate().ExpectCallsToDependenciesSetUpMethods(); |
| 1368 mock_delegate().ExpectCallsToGetterMethods(); | 1368 mock_delegate().ExpectCallsToGetterMethods(); |
| 1369 uint32 expected_mask = | 1369 uint32 expected_mask = |
| 1370 HAS_EXPECTED_MODULE_DIGEST_1 | HAS_EXPECTED_MODULE_DIGEST_2; | 1370 HAS_EXPECTED_MODULE_DIGEST_1 | HAS_EXPECTED_MODULE_DIGEST_2; |
| 1371 EXPECT_CALL(resetter(), ReportStatistics(0x00u, expected_mask)); | 1371 EXPECT_CALL(resetter(), ReportStatistics(0x00u, expected_mask)); |
| 1372 | 1372 |
| 1373 UnleashResetterAndWait(); | 1373 UnleashResetterAndWait(); |
| 1374 } | 1374 } |
| 1375 | 1375 |
| 1376 } // namespace | 1376 } // namespace |
| OLD | NEW |