OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/settings/device_settings_provider.h" | 5 #include "chrome/browser/chromeos/settings/device_settings_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/macros.h" |
12 #include "base/path_service.h" | 13 #include "base/path_service.h" |
13 #include "base/test/scoped_path_override.h" | 14 #include "base/test/scoped_path_override.h" |
14 #include "base/values.h" | 15 #include "base/values.h" |
15 #include "chrome/browser/chromeos/policy/device_local_account.h" | 16 #include "chrome/browser/chromeos/policy/device_local_account.h" |
16 #include "chrome/browser/chromeos/policy/device_policy_builder.h" | 17 #include "chrome/browser/chromeos/policy/device_policy_builder.h" |
17 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 18 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
18 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" | 19 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" |
19 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
20 #include "chrome/test/base/scoped_testing_local_state.h" | 21 #include "chrome/test/base/scoped_testing_local_state.h" |
21 #include "chrome/test/base/testing_browser_process.h" | 22 #include "chrome/test/base/testing_browser_process.h" |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 } | 497 } |
497 | 498 |
498 TEST_F(DeviceSettingsProviderTest, DecodeLogUploadSettings) { | 499 TEST_F(DeviceSettingsProviderTest, DecodeLogUploadSettings) { |
499 SetLogUploadSettings(true); | 500 SetLogUploadSettings(true); |
500 VerifyLogUploadSettings(true); | 501 VerifyLogUploadSettings(true); |
501 | 502 |
502 SetLogUploadSettings(false); | 503 SetLogUploadSettings(false); |
503 VerifyLogUploadSettings(false); | 504 VerifyLogUploadSettings(false); |
504 } | 505 } |
505 } // namespace chromeos | 506 } // namespace chromeos |
OLD | NEW |