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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_test_helper.h

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "chrome/browser/chromeos/settings/device_settings_service.h" 17 #include "chrome/browser/chromeos/settings/device_settings_service.h"
18 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" 18 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h"
19 #include "chrome/browser/chromeos/settings/mock_owner_key_util.h" 19 #include "chrome/browser/chromeos/settings/mock_owner_key_util.h"
20 #include "chrome/browser/policy/policy_builder.h" 20 #include "chrome/browser/policy/cloud/policy_builder.h"
21 #include "chromeos/dbus/session_manager_client.h" 21 #include "chromeos/dbus/session_manager_client.h"
22 #include "content/public/test/test_browser_thread.h" 22 #include "content/public/test/test_browser_thread.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace chromeos { 25 namespace chromeos {
26 26
27 // A helper class for tests mocking out session_manager's device settings 27 // A helper class for tests mocking out session_manager's device settings
28 // interface. The pattern is to initialize DeviceSettingsService with the helper 28 // interface. The pattern is to initialize DeviceSettingsService with the helper
29 // for the SessionManagerClient pointer. The helper records calls made by 29 // for the SessionManagerClient pointer. The helper records calls made by
30 // DeviceSettingsService. The test can then verify state, after which it should 30 // DeviceSettingsService. The test can then verify state, after which it should
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 scoped_refptr<MockOwnerKeyUtil> owner_key_util_; 169 scoped_refptr<MockOwnerKeyUtil> owner_key_util_;
170 DeviceSettingsService device_settings_service_; 170 DeviceSettingsService device_settings_service_;
171 171
172 private: 172 private:
173 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); 173 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase);
174 }; 174 };
175 175
176 } // namespace chromeos 176 } // namespace chromeos
177 177
178 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 178 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698