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

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

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 3 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 9
10 #include <memory> 10 #include <memory>
(...skipping 30 matching lines...) Expand all
41 #include "chromeos/dbus/shill_device_client.h" 41 #include "chromeos/dbus/shill_device_client.h"
42 #include "chromeos/dbus/shill_ipconfig_client.h" 42 #include "chromeos/dbus/shill_ipconfig_client.h"
43 #include "chromeos/dbus/shill_service_client.h" 43 #include "chromeos/dbus/shill_service_client.h"
44 #include "chromeos/disks/disk_mount_manager.h" 44 #include "chromeos/disks/disk_mount_manager.h"
45 #include "chromeos/disks/mock_disk_mount_manager.h" 45 #include "chromeos/disks/mock_disk_mount_manager.h"
46 #include "chromeos/network/network_handler.h" 46 #include "chromeos/network/network_handler.h"
47 #include "chromeos/network/network_state.h" 47 #include "chromeos/network/network_state.h"
48 #include "chromeos/network/network_state_handler.h" 48 #include "chromeos/network/network_state_handler.h"
49 #include "chromeos/settings/cros_settings_names.h" 49 #include "chromeos/settings/cros_settings_names.h"
50 #include "chromeos/system/fake_statistics_provider.h" 50 #include "chromeos/system/fake_statistics_provider.h"
51 #include "components/policy/proto/device_management_backend.pb.h"
51 #include "components/prefs/pref_service.h" 52 #include "components/prefs/pref_service.h"
52 #include "components/prefs/testing_pref_service.h" 53 #include "components/prefs/testing_pref_service.h"
53 #include "content/public/browser/browser_thread.h" 54 #include "content/public/browser/browser_thread.h"
54 #include "content/public/test/test_browser_thread.h" 55 #include "content/public/test/test_browser_thread.h"
55 #include "content/public/test/test_utils.h" 56 #include "content/public/test/test_utils.h"
56 #include "device/geolocation/geolocation_provider.h" 57 #include "device/geolocation/geolocation_provider.h"
57 #include "policy/proto/device_management_backend.pb.h"
58 #include "storage/browser/fileapi/external_mount_points.h" 58 #include "storage/browser/fileapi/external_mount_points.h"
59 #include "storage/browser/fileapi/mount_points.h" 59 #include "storage/browser/fileapi/mount_points.h"
60 #include "storage/common/fileapi/file_system_mount_option.h" 60 #include "storage/common/fileapi/file_system_mount_option.h"
61 #include "storage/common/fileapi/file_system_types.h" 61 #include "storage/common/fileapi/file_system_types.h"
62 #include "testing/gmock/include/gmock/gmock.h" 62 #include "testing/gmock/include/gmock/gmock.h"
63 #include "testing/gtest/include/gtest/gtest.h" 63 #include "testing/gtest/include/gtest/gtest.h"
64 #include "third_party/cros_system_api/dbus/service_constants.h" 64 #include "third_party/cros_system_api/dbus/service_constants.h"
65 65
66 using ::testing::Return; 66 using ::testing::Return;
67 using ::testing::ReturnRef; 67 using ::testing::ReturnRef;
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 AccountId::FromUserEmail(kPublicAccountId)); 1535 AccountId::FromUserEmail(kPublicAccountId));
1536 EXPECT_CALL(*user_manager_, IsLoggedInAsPublicAccount()) 1536 EXPECT_CALL(*user_manager_, IsLoggedInAsPublicAccount())
1537 .WillRepeatedly(Return(true)); 1537 .WillRepeatedly(Return(true));
1538 1538
1539 settings_helper_.SetBoolean(chromeos::kReportDeviceNetworkInterfaces, true); 1539 settings_helper_.SetBoolean(chromeos::kReportDeviceNetworkInterfaces, true);
1540 GetDeviceStatus(); 1540 GetDeviceStatus();
1541 VerifyNetworkReporting(); 1541 VerifyNetworkReporting();
1542 } 1542 }
1543 1543
1544 } // namespace policy 1544 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698