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 "chrome/browser/extensions/extension_service_test_base.h" | 5 #include "chrome/browser/extensions/extension_service_test_base.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 } // namespace | 72 } // namespace |
73 | 73 |
74 ExtensionServiceTestBase::ExtensionServiceInitParams:: | 74 ExtensionServiceTestBase::ExtensionServiceInitParams:: |
75 ExtensionServiceInitParams() | 75 ExtensionServiceInitParams() |
76 : autoupdate_enabled(false), | 76 : autoupdate_enabled(false), |
77 is_first_run(true), | 77 is_first_run(true), |
78 profile_is_supervised(false) { | 78 profile_is_supervised(false) { |
79 } | 79 } |
80 | 80 |
| 81 ExtensionServiceTestBase::ExtensionServiceInitParams:: |
| 82 ExtensionServiceInitParams(const ExtensionServiceInitParams& other) = |
| 83 default; |
| 84 |
81 ExtensionServiceTestBase::ExtensionServiceTestBase() | 85 ExtensionServiceTestBase::ExtensionServiceTestBase() |
82 : thread_bundle_(new content::TestBrowserThreadBundle(kThreadOptions)), | 86 : thread_bundle_(new content::TestBrowserThreadBundle(kThreadOptions)), |
83 service_(NULL), | 87 service_(NULL), |
84 testing_local_state_(TestingBrowserProcess::GetGlobal()), | 88 testing_local_state_(TestingBrowserProcess::GetGlobal()), |
85 did_reset_thread_bundle_(false), | 89 did_reset_thread_bundle_(false), |
86 registry_(NULL) { | 90 registry_(NULL) { |
87 base::FilePath test_data_dir; | 91 base::FilePath test_data_dir; |
88 if (!PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir)) { | 92 if (!PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir)) { |
89 ADD_FAILURE(); | 93 ADD_FAILURE(); |
90 return; | 94 return; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 // interfere with the tests. Those tests that need an external provider | 327 // interfere with the tests. Those tests that need an external provider |
324 // will register one specifically. | 328 // will register one specifically. |
325 service_->ClearProvidersForTesting(); | 329 service_->ClearProvidersForTesting(); |
326 | 330 |
327 #if defined(OS_CHROMEOS) | 331 #if defined(OS_CHROMEOS) |
328 InstallLimiter::Get(profile_.get())->DisableForTest(); | 332 InstallLimiter::Get(profile_.get())->DisableForTest(); |
329 #endif | 333 #endif |
330 } | 334 } |
331 | 335 |
332 } // namespace extensions | 336 } // namespace extensions |
OLD | NEW |