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

Unified Diff: content/public/test/content_test_suite_base.h

Issue 10786038: Prevent loading libffmpegsumo.so to python (autotests) process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync + iteration Created 8 years, 5 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
Index: content/public/test/content_test_suite_base.h
diff --git a/content/public/test/content_test_suite_base.h b/content/public/test/content_test_suite_base.h
index 7d011a6f8d39bc243a238caa2ec7bf8dea446f55..f31c5f6c4464d9bffa349106201fdad77b2a0b02 100644
--- a/content/public/test/content_test_suite_base.h
+++ b/content/public/test/content_test_suite_base.h
@@ -25,7 +25,15 @@ class ContentTestSuiteBase : public base::TestSuite {
// Creates a ContentClient for use during test suite initialization.
virtual ContentClient* CreateClientForInitialization() = 0;
+ // Prevent Initialize() to load external libraries to the
+ // process. In case of autotests (the process is actually a python)
jam 2012/07/23 23:02:40 nit: don't mention autotests in src/content. A dev
glotov 2012/07/24 13:06:55 Done.
+ // this prevents crashes if ASAN is used.
+ void DisableLoadingExternalLibraries() {
+ external_libraries_enabled_ = false;
+ }
+
private:
+ bool external_libraries_enabled_;
DISALLOW_COPY_AND_ASSIGN(ContentTestSuiteBase);
};

Powered by Google App Engine
This is Rietveld 408576698