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

Unified Diff: chrome/browser/extensions/extension_browsertest.h

Issue 565523003: Add scoped path overrides for system directories for ExtensionBrowserTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_browsertest.h
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index 7cd69f676217ad9ba5fc5ac2f4fa6c3e59ccdb13..d5a9b58301a53d50e9f5cb441e6a8e5d7040b220 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -11,6 +11,7 @@
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/test/scoped_path_override.h"
#include "chrome/browser/extensions/extension_test_notification_observer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
@@ -375,6 +376,15 @@ class ExtensionBrowserTest : virtual public InProcessBrowserTest {
extensions::FeatureSwitch::ScopedOverride
override_prompt_for_external_extensions_;
+#if defined(OS_WIN)
+ // Use mock shortcut directories to ensure app shortcuts are cleaned up.
+ base::ScopedPathOverride user_desktop_override_;
+ base::ScopedPathOverride common_desktop_override_;
+ base::ScopedPathOverride user_quick_launch_override_;
+ base::ScopedPathOverride start_menu_override_;
+ base::ScopedPathOverride common_start_menu_override_;
+#endif
+
// The default profile to be used.
Profile* profile_;
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698