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

Unified Diff: chrome_frame/test/urlmon_moniker_unittest.cc

Issue 5564009: Temporary workaround to get tests that reference singletons either directly o... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « chrome_frame/test/policy_settings_unittest.cc ('k') | chrome_frame/test/util_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/urlmon_moniker_unittest.cc
===================================================================
--- chrome_frame/test/urlmon_moniker_unittest.cc (revision 68663)
+++ chrome_frame/test/urlmon_moniker_unittest.cc (working copy)
@@ -9,8 +9,10 @@
#include "base/path_service.h"
#include "base/scoped_comptr_win.h"
#include "chrome_frame/urlmon_bind_status_callback.h"
+#include "chrome_frame/test/chrome_frame_test_utils.h"
#include "chrome_frame/test/urlmon_moniker_tests.h"
+using chrome_frame_test::ScopedVirtualizeHklmAndHkcu;
using testing::Return;
using testing::Eq;
@@ -20,6 +22,7 @@
}
virtual void SetUp() {
+ DeleteAllSingletons();
PathService::Get(base::DIR_SOURCE_ROOT, &test_file_path_);
test_file_path_ = test_file_path_.Append(FILE_PATH_LITERAL("chrome_frame"))
.Append(FILE_PATH_LITERAL("test"))
@@ -58,6 +61,7 @@
}
FilePath test_file_path_;
+ ScopedVirtualizeHklmAndHkcu virtualized_registry_;
};
// Tests the CacheStream class by writing content into a stream object
« no previous file with comments | « chrome_frame/test/policy_settings_unittest.cc ('k') | chrome_frame/test/util_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698