OLD | NEW |
1 // Copyright 2013 Google Inc. All Rights Reserved. | 1 // Copyright 2013 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // A temporary directory into which the log file will be written. | 125 // A temporary directory into which the log file will be written. |
126 base::ScopedTempDir temp_dir_; | 126 base::ScopedTempDir temp_dir_; |
127 | 127 |
128 // The contents of the log. These are read by calling LogContains. | 128 // The contents of the log. These are read by calling LogContains. |
129 bool log_contents_read_; | 129 bool log_contents_read_; |
130 std::string log_contents_; | 130 std::string log_contents_; |
131 | 131 |
132 // Value of the logger instance environment variable before SetUp. | 132 // Value of the logger instance environment variable before SetUp. |
133 std::string old_logger_env_; | 133 std::string old_logger_env_; |
134 | 134 |
| 135 // Value of the asan options environment variable before SetUp. |
| 136 std::string old_asan_options_env_; |
| 137 |
135 // Redirection files for the logger. | 138 // Redirection files for the logger. |
136 base::ScopedFILE logger_stdin_file_; | 139 base::ScopedFILE logger_stdin_file_; |
137 base::ScopedFILE logger_stdout_file_; | 140 base::ScopedFILE logger_stdout_file_; |
138 base::ScopedFILE logger_stderr_file_; | 141 base::ScopedFILE logger_stderr_file_; |
139 }; | 142 }; |
140 | 143 |
141 // Shorthand for discussing all the asan runtime functions. | 144 // Shorthand for discussing all the asan runtime functions. |
142 #ifndef _WIN64 | 145 #ifndef _WIN64 |
143 #define ASAN_RTL_FUNCTIONS(F) \ | 146 #define ASAN_RTL_FUNCTIONS(F) \ |
144 F(WINAPI, HANDLE, GetProcessHeap, (), ()) \ | 147 F(WINAPI, HANDLE, GetProcessHeap, (), ()) \ |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 void ClearIntersection(const void* addr, size_t size); | 884 void ClearIntersection(const void* addr, size_t size); |
882 | 885 |
883 // An alternative view of shadow memory. Accessible regions are not | 886 // An alternative view of shadow memory. Accessible regions are not |
884 // displayed. Neighboring regions of the same type are merged. | 887 // displayed. Neighboring regions of the same type are merged. |
885 ShadowAddressSpace shadow_address_space_; | 888 ShadowAddressSpace shadow_address_space_; |
886 }; | 889 }; |
887 | 890 |
888 } // namespace testing | 891 } // namespace testing |
889 | 892 |
890 #endif // SYZYGY_AGENT_ASAN_UNITTEST_UTIL_H_ | 893 #endif // SYZYGY_AGENT_ASAN_UNITTEST_UTIL_H_ |
OLD | NEW |