Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: chrome/browser/chromeos/policy/device_status_collector_browsertest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/environment.h" 14 #include "base/environment.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/prefs/pref_service.h"
20 #include "base/prefs/testing_pref_service.h"
21 #include "base/run_loop.h" 19 #include "base/run_loop.h"
22 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
23 #include "base/threading/sequenced_worker_pool.h" 21 #include "base/threading/sequenced_worker_pool.h"
24 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" 22 #include "chrome/browser/chromeos/login/users/mock_user_manager.h"
25 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" 23 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
26 #include "chrome/browser/chromeos/ownership/fake_owner_settings_service.h" 24 #include "chrome/browser/chromeos/ownership/fake_owner_settings_service.h"
27 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 25 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
28 #include "chrome/browser/chromeos/policy/device_local_account.h" 26 #include "chrome/browser/chromeos/policy/device_local_account.h"
29 #include "chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h" 27 #include "chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h"
30 #include "chrome/browser/chromeos/settings/scoped_cros_settings_test_helper.h" 28 #include "chrome/browser/chromeos/settings/scoped_cros_settings_test_helper.h"
31 #include "chrome/common/pref_names.h" 29 #include "chrome/common/pref_names.h"
32 #include "chrome/test/base/testing_browser_process.h" 30 #include "chrome/test/base/testing_browser_process.h"
33 #include "chromeos/dbus/cros_disks_client.h" 31 #include "chromeos/dbus/cros_disks_client.h"
34 #include "chromeos/dbus/dbus_thread_manager.h" 32 #include "chromeos/dbus/dbus_thread_manager.h"
35 #include "chromeos/dbus/shill_device_client.h" 33 #include "chromeos/dbus/shill_device_client.h"
36 #include "chromeos/dbus/shill_ipconfig_client.h" 34 #include "chromeos/dbus/shill_ipconfig_client.h"
37 #include "chromeos/dbus/shill_service_client.h" 35 #include "chromeos/dbus/shill_service_client.h"
38 #include "chromeos/disks/disk_mount_manager.h" 36 #include "chromeos/disks/disk_mount_manager.h"
39 #include "chromeos/disks/mock_disk_mount_manager.h" 37 #include "chromeos/disks/mock_disk_mount_manager.h"
40 #include "chromeos/network/network_handler.h" 38 #include "chromeos/network/network_handler.h"
41 #include "chromeos/network/network_state.h" 39 #include "chromeos/network/network_state.h"
42 #include "chromeos/network/network_state_handler.h" 40 #include "chromeos/network/network_state_handler.h"
43 #include "chromeos/settings/cros_settings_names.h" 41 #include "chromeos/settings/cros_settings_names.h"
44 #include "chromeos/system/fake_statistics_provider.h" 42 #include "chromeos/system/fake_statistics_provider.h"
43 #include "components/prefs/pref_service.h"
44 #include "components/prefs/testing_pref_service.h"
45 #include "content/public/browser/browser_thread.h" 45 #include "content/public/browser/browser_thread.h"
46 #include "content/public/browser/geolocation_provider.h" 46 #include "content/public/browser/geolocation_provider.h"
47 #include "content/public/test/test_browser_thread.h" 47 #include "content/public/test/test_browser_thread.h"
48 #include "content/public/test/test_utils.h" 48 #include "content/public/test/test_utils.h"
49 #include "policy/proto/device_management_backend.pb.h" 49 #include "policy/proto/device_management_backend.pb.h"
50 #include "storage/browser/fileapi/external_mount_points.h" 50 #include "storage/browser/fileapi/external_mount_points.h"
51 #include "storage/browser/fileapi/mount_points.h" 51 #include "storage/browser/fileapi/mount_points.h"
52 #include "storage/common/fileapi/file_system_mount_option.h" 52 #include "storage/common/fileapi/file_system_mount_option.h"
53 #include "storage/common/fileapi/file_system_types.h" 53 #include "storage/common/fileapi/file_system_types.h"
54 #include "testing/gmock/include/gmock/gmock.h" 54 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 AccountId::FromUserEmail(kPublicAccountId)); 1311 AccountId::FromUserEmail(kPublicAccountId));
1312 EXPECT_CALL(*user_manager_, IsLoggedInAsPublicAccount()) 1312 EXPECT_CALL(*user_manager_, IsLoggedInAsPublicAccount())
1313 .WillRepeatedly(Return(true)); 1313 .WillRepeatedly(Return(true));
1314 1314
1315 settings_helper_.SetBoolean(chromeos::kReportDeviceNetworkInterfaces, true); 1315 settings_helper_.SetBoolean(chromeos::kReportDeviceNetworkInterfaces, true);
1316 GetStatus(); 1316 GetStatus();
1317 VerifyNetworkReporting(); 1317 VerifyNetworkReporting();
1318 } 1318 }
1319 1319
1320 } // namespace policy 1320 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698