| OLD | NEW | 
|---|
| 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/extensions/extension_prefs_unittest.h" | 5 #include "chrome/browser/extensions/extension_prefs_unittest.h" | 
| 6 | 6 | 
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" | 
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" | 
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" | 
| 10 #include "base/prefs/mock_pref_change_callback.h" | 10 #include "base/prefs/mock_pref_change_callback.h" | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 48 | 48 | 
| 49 namespace extensions { | 49 namespace extensions { | 
| 50 | 50 | 
| 51 static void AddPattern(URLPatternSet* extent, const std::string& pattern) { | 51 static void AddPattern(URLPatternSet* extent, const std::string& pattern) { | 
| 52   int schemes = URLPattern::SCHEME_ALL; | 52   int schemes = URLPattern::SCHEME_ALL; | 
| 53   extent->AddPattern(URLPattern(schemes, pattern)); | 53   extent->AddPattern(URLPattern(schemes, pattern)); | 
| 54 } | 54 } | 
| 55 | 55 | 
| 56 ExtensionPrefsTest::ExtensionPrefsTest() | 56 ExtensionPrefsTest::ExtensionPrefsTest() | 
| 57     : ui_thread_(BrowserThread::UI, &message_loop_), | 57     : ui_thread_(BrowserThread::UI, &message_loop_), | 
| 58       prefs_(message_loop_.message_loop_proxy()) { | 58       prefs_(message_loop_.message_loop_proxy().get()) {} | 
| 59 } |  | 
| 60 | 59 | 
| 61 ExtensionPrefsTest::~ExtensionPrefsTest() { | 60 ExtensionPrefsTest::~ExtensionPrefsTest() { | 
| 62 } | 61 } | 
| 63 | 62 | 
| 64 void ExtensionPrefsTest::RegisterPreferences( | 63 void ExtensionPrefsTest::RegisterPreferences( | 
| 65     user_prefs::PrefRegistrySyncable* registry) {} | 64     user_prefs::PrefRegistrySyncable* registry) {} | 
| 66 | 65 | 
| 67 void ExtensionPrefsTest::SetUp() { | 66 void ExtensionPrefsTest::SetUp() { | 
| 68   RegisterPreferences(prefs_.pref_registry().get()); | 67   RegisterPreferences(prefs_.pref_registry().get()); | 
| 69   Initialize(); | 68   Initialize(); | 
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1118 | 1117 | 
| 1119  private: | 1118  private: | 
| 1120   scoped_refptr<const Extension> extension_a_; | 1119   scoped_refptr<const Extension> extension_a_; | 
| 1121   scoped_refptr<const Extension> extension_b_; | 1120   scoped_refptr<const Extension> extension_b_; | 
| 1122   scoped_refptr<const Extension> extension_c_; | 1121   scoped_refptr<const Extension> extension_c_; | 
| 1123 }; | 1122 }; | 
| 1124 TEST_F(ExtensionPrefsBlacklistedExtensions, | 1123 TEST_F(ExtensionPrefsBlacklistedExtensions, | 
| 1125        ExtensionPrefsBlacklistedExtensions) {} | 1124        ExtensionPrefsBlacklistedExtensions) {} | 
| 1126 | 1125 | 
| 1127 }  // namespace extensions | 1126 }  // namespace extensions | 
| OLD | NEW | 
|---|