summaryrefslogtreecommitdiffstats
path: root/content/public/test/content_test_suite_base.h
diff options
context:
space:
mode:
authorglotov@chromium.org <glotov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-24 20:17:43 +0000
committerglotov@chromium.org <glotov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-24 20:17:43 +0000
commit8f732995213942d1e70a08a11333c6830e527782 (patch)
tree5f1c05808c3015013e01fc93db1e5f4f9425e61e /content/public/test/content_test_suite_base.h
parentb2deb2f66b17f7e7ae036287d2773b9e82593089 (diff)
downloadchromium_src-8f732995213942d1e70a08a11333c6830e527782.zip
chromium_src-8f732995213942d1e70a08a11333c6830e527782.tar.gz
chromium_src-8f732995213942d1e70a08a11333c6830e527782.tar.bz2
Prevent loading libffmpegsumo.so to python (autotests) process.
This is needed for ASAN environment because libffmpegsumo.so, being built with ASAN support, fails to load to python process (which is not ASAN-ed currently). At the same time it loads file to chrome or to gtest processes (like content_unittests) because they do have ASAN runtime. FYI: Alternative approach (https://chromiumcodereview.appspot.com/10692190/) was skipped because it disallowed ASAN to test libffmpegsumo.so. BUG=chromium-os:32259 TESTS=unit Review URL: https://chromiumcodereview.appspot.com/10786038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148183 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/test/content_test_suite_base.h')
-rw-r--r--content/public/test/content_test_suite_base.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/public/test/content_test_suite_base.h b/content/public/test/content_test_suite_base.h
index 7d011a6..7887cc3 100644
--- a/content/public/test/content_test_suite_base.h
+++ b/content/public/test/content_test_suite_base.h
@@ -25,7 +25,14 @@ class ContentTestSuiteBase : public base::TestSuite {
// Creates a ContentClient for use during test suite initialization.
virtual ContentClient* CreateClientForInitialization() = 0;
+ // If set to false, prevents Initialize() to load external libraries
+ // to the process. By default loading is enabled.
+ void set_external_libraries_enabled(bool val) {
+ external_libraries_enabled_ = val;
+ }
+
private:
+ bool external_libraries_enabled_;
DISALLOW_COPY_AND_ASSIGN(ContentTestSuiteBase);
};