OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/scoped_temp_dir.h" | 7 #include "base/scoped_temp_dir.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "chrome/browser/extensions/extension_prefs.h" | 11 #include "chrome/browser/extensions/extension_prefs.h" |
12 #include "chrome/browser/extensions/test_extension_prefs.h" | 12 #include "chrome/browser/extensions/test_extension_prefs.h" |
13 #include "chrome/browser/prefs/pref_change_registrar.h" | 13 #include "chrome/browser/prefs/pref_change_registrar.h" |
14 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 14 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
16 #include "chrome/common/extensions/extension_constants.h" | 16 #include "chrome/common/extensions/extension_constants.h" |
17 #include "chrome/common/extensions/extension_permission_set.h" | 17 #include "chrome/common/extensions/extension_permission_set.h" |
18 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
19 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
20 #include "content/test/notification_observer_mock.h" | 20 #include "content/test/notification_observer_mock.h" |
21 #include "content/test/test_browser_thread.h" | 21 #include "content/test/test_browser_thread.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 using base::Time; | 24 using base::Time; |
25 using base::TimeDelta; | 25 using base::TimeDelta; |
| 26 using content::BrowserThread; |
26 | 27 |
27 namespace { | 28 namespace { |
28 | 29 |
29 const char kPref1[] = "path1.subpath"; | 30 const char kPref1[] = "path1.subpath"; |
30 const char kPref2[] = "path2"; | 31 const char kPref2[] = "path2"; |
31 const char kPref3[] = "path3"; | 32 const char kPref3[] = "path3"; |
32 const char kPref4[] = "path4"; | 33 const char kPref4[] = "path4"; |
33 | 34 |
34 // Default values in case an extension pref value is not overridden. | 35 // Default values in case an extension pref value is not overridden. |
35 const char kDefaultPref1[] = "default pref 1"; | 36 const char kDefaultPref1[] = "default pref 1"; |
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 ++iteration_; | 1209 ++iteration_; |
1209 } else { | 1210 } else { |
1210 EXPECT_EQ(kDefaultPref1, actual); | 1211 EXPECT_EQ(kDefaultPref1, actual); |
1211 } | 1212 } |
1212 } | 1213 } |
1213 | 1214 |
1214 private: | 1215 private: |
1215 int iteration_; | 1216 int iteration_; |
1216 }; | 1217 }; |
1217 TEST_F(ExtensionPrefsDisableExtensions, ExtensionPrefsDisableExtensions) {} | 1218 TEST_F(ExtensionPrefsDisableExtensions, ExtensionPrefsDisableExtensions) {} |
OLD | NEW |