| Index: chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc
|
| diff --git a/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc b/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc
|
| index 6625964dc7c0bfc655ef1034674e81a8ff9d407e..6e1ccd441786e826a11ec4ecde6dee4813640fec 100644
|
| --- a/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc
|
| +++ b/chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc
|
| @@ -2,6 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "base/base_paths_win.h"
|
| #include "base/file_util.h"
|
| #include "base/message_loop.h"
|
| #include "base/path_service.h"
|
| @@ -62,6 +63,11 @@ class ProfileShortcutManagerTest : public testing::Test {
|
| }
|
|
|
| virtual void SetUp() {
|
| + // Mock the user's Desktop into a temp directory.
|
| + ASSERT_TRUE(fake_user_desktop_.CreateUniqueTempDir());
|
| + EXPECT_TRUE(PathService::Override(base::DIR_USER_DESKTOP,
|
| + fake_user_desktop_.path()));
|
| +
|
| TestingBrowserProcess* browser_process =
|
| static_cast<TestingBrowserProcess*>(g_browser_process);
|
| profile_manager_.reset(new TestingProfileManager(browser_process));
|
| @@ -148,6 +154,7 @@ class ProfileShortcutManagerTest : public testing::Test {
|
| content::TestBrowserThread ui_thread_;
|
| content::TestBrowserThread file_thread_;
|
| scoped_ptr<TestingProfileManager> profile_manager_;
|
| + ScopedTempDir fake_user_desktop_;
|
| FilePath dest_path_;
|
| string16 profile_name_;
|
| FilePath second_dest_path_;
|
|
|