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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_provider_unittest.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/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/macros.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/test/scoped_path_override.h" 14 #include "base/test/scoped_path_override.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/chromeos/policy/device_local_account.h" 16 #include "chrome/browser/chromeos/policy/device_local_account.h"
17 #include "chrome/browser/chromeos/policy/device_policy_builder.h" 17 #include "chrome/browser/chromeos/policy/device_policy_builder.h"
18 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" 18 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
19 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" 19 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h"
20 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
21 #include "chrome/test/base/scoped_testing_local_state.h" 21 #include "chrome/test/base/scoped_testing_local_state.h"
22 #include "chrome/test/base/testing_browser_process.h" 22 #include "chrome/test/base/testing_browser_process.h"
23 #include "chrome/test/base/testing_profile.h" 23 #include "chrome/test/base/testing_profile.h"
24 #include "chromeos/settings/cros_settings_names.h" 24 #include "chromeos/settings/cros_settings_names.h"
25 #include "components/policy/proto/device_management_backend.pb.h"
25 #include "components/user_manager/fake_user_manager.h" 26 #include "components/user_manager/fake_user_manager.h"
26 #include "components/user_manager/user.h" 27 #include "components/user_manager/user.h"
27 #include "policy/proto/device_management_backend.pb.h"
28 #include "testing/gmock/include/gmock/gmock.h" 28 #include "testing/gmock/include/gmock/gmock.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 namespace em = enterprise_management; 31 namespace em = enterprise_management;
32 32
33 namespace chromeos { 33 namespace chromeos {
34 34
35 using ::testing::AtLeast; 35 using ::testing::AtLeast;
36 using ::testing::AnyNumber; 36 using ::testing::AnyNumber;
37 using ::testing::Mock; 37 using ::testing::Mock;
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 } 483 }
484 484
485 TEST_F(DeviceSettingsProviderTest, DecodeLogUploadSettings) { 485 TEST_F(DeviceSettingsProviderTest, DecodeLogUploadSettings) {
486 SetLogUploadSettings(true); 486 SetLogUploadSettings(true);
487 VerifyLogUploadSettings(true); 487 VerifyLogUploadSettings(true);
488 488
489 SetLogUploadSettings(false); 489 SetLogUploadSettings(false);
490 VerifyLogUploadSettings(false); 490 VerifyLogUploadSettings(false);
491 } 491 }
492 } // namespace chromeos 492 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698