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

Side by Side Diff: chrome/browser/extensions/extension_garbage_collector_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/files/file_enumerator.h" 7 #include "base/files/file_enumerator.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/prefs/scoped_user_pref_update.h"
11 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
12 #include "base/values.h" 11 #include "base/values.h"
13 #include "chrome/browser/extensions/extension_garbage_collector.h" 12 #include "chrome/browser/extensions/extension_garbage_collector.h"
14 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_service_test_base.h" 14 #include "chrome/browser/extensions/extension_service_test_base.h"
16 #include "chrome/browser/extensions/install_tracker.h" 15 #include "chrome/browser/extensions/install_tracker.h"
17 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/common/chrome_constants.h" 17 #include "chrome/common/chrome_constants.h"
19 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
19 #include "components/prefs/scoped_user_pref_update.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/plugin_service.h" 21 #include "content/public/browser/plugin_service.h"
22 #include "content/public/test/test_browser_thread_bundle.h" 22 #include "content/public/test/test_browser_thread_bundle.h"
23 #include "extensions/browser/extension_prefs.h" 23 #include "extensions/browser/extension_prefs.h"
24 24
25 namespace extensions { 25 namespace extensions {
26 26
27 class ExtensionGarbageCollectorUnitTest : public ExtensionServiceTestBase { 27 class ExtensionGarbageCollectorUnitTest : public ExtensionServiceTestBase {
28 protected: 28 protected:
29 void InitPluginService() { 29 void InitPluginService() {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 EXPECT_FALSE(base::PathExists(extensions_install_dir().AppendASCII( 193 EXPECT_FALSE(base::PathExists(extensions_install_dir().AppendASCII(
194 "hpiknbiabeeppbpihjehijgoemciehgk/3"))); 194 "hpiknbiabeeppbpihjehijgoemciehgk/3")));
195 195
196 // Make sure update information got deleted. 196 // Make sure update information got deleted.
197 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile_.get()); 197 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile_.get());
198 EXPECT_FALSE( 198 EXPECT_FALSE(
199 prefs->GetDelayedInstallInfo("bjafgdebaacbbbecmhlhpofkepfkgcpa")); 199 prefs->GetDelayedInstallInfo("bjafgdebaacbbbecmhlhpofkepfkgcpa"));
200 } 200 }
201 201
202 } // namespace extensions 202 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698