| 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/policy/device_status_collector.h" | 5 #include "chrome/browser/chromeos/policy/device_status_collector.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/bind.h" | 15 #include "base/bind.h" |
| 16 #include "base/environment.h" | 16 #include "base/environment.h" |
| 17 #include "base/location.h" | 17 #include "base/location.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
| 21 #include "base/message_loop/message_loop.h" | 21 #include "base/message_loop/message_loop.h" |
| 22 #include "base/run_loop.h" | 22 #include "base/run_loop.h" |
| 23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
| 24 #include "base/sys_info.h" | 24 #include "base/sys_info.h" |
| 25 #include "base/test/scoped_path_override.h" | 25 #include "base/test/scoped_path_override.h" |
| 26 #include "base/threading/sequenced_worker_pool.h" | 26 #include "base/threading/sequenced_worker_pool.h" |
| 27 #include "base/threading/thread_task_runner_handle.h" | 27 #include "base/threading/thread_task_runner_handle.h" |
| 28 #include "chrome/browser/chromeos/app_mode/kiosk_app_data.h" | 28 #include "chrome/browser/chromeos/app_mode/kiosk_app_data.h" |
| 29 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 29 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 30 #include "chrome/browser/chromeos/arc/arc_auth_service.h" | |
| 31 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" | 30 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" |
| 32 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 31 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
| 33 #include "chrome/browser/chromeos/ownership/fake_owner_settings_service.h" | 32 #include "chrome/browser/chromeos/ownership/fake_owner_settings_service.h" |
| 34 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 33 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 35 #include "chrome/browser/chromeos/policy/device_local_account.h" | 34 #include "chrome/browser/chromeos/policy/device_local_account.h" |
| 36 #include "chrome/browser/chromeos/settings/scoped_cros_settings_test_helper.h" | 35 #include "chrome/browser/chromeos/settings/scoped_cros_settings_test_helper.h" |
| 37 #include "chrome/browser/chromeos/settings/stub_install_attributes.h" | 36 #include "chrome/browser/chromeos/settings/stub_install_attributes.h" |
| 38 #include "chrome/common/chrome_paths.h" | 37 #include "chrome/common/chrome_paths.h" |
| 39 #include "chrome/common/pref_names.h" | 38 #include "chrome/common/pref_names.h" |
| 40 #include "chrome/test/base/testing_browser_process.h" | 39 #include "chrome/test/base/testing_browser_process.h" |
| (...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 AccountId::FromUserEmail(kPublicAccountId)); | 1486 AccountId::FromUserEmail(kPublicAccountId)); |
| 1488 EXPECT_CALL(*user_manager_, IsLoggedInAsPublicAccount()) | 1487 EXPECT_CALL(*user_manager_, IsLoggedInAsPublicAccount()) |
| 1489 .WillRepeatedly(Return(true)); | 1488 .WillRepeatedly(Return(true)); |
| 1490 | 1489 |
| 1491 settings_helper_.SetBoolean(chromeos::kReportDeviceNetworkInterfaces, true); | 1490 settings_helper_.SetBoolean(chromeos::kReportDeviceNetworkInterfaces, true); |
| 1492 GetStatus(); | 1491 GetStatus(); |
| 1493 VerifyNetworkReporting(); | 1492 VerifyNetworkReporting(); |
| 1494 } | 1493 } |
| 1495 | 1494 |
| 1496 } // namespace policy | 1495 } // namespace policy |
| OLD | NEW |