Chromium Code Reviews| 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); |
| }; |