| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include <stdio.h> | 5 #include <stdio.h> | 
| 6 | 6 | 
| 7 #include <memory> | 7 #include <memory> | 
| 8 | 8 | 
| 9 #include "base/environment.h" | 9 #include "base/environment.h" | 
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" | 
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" | 
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" | 
| 13 #include "base/memory/scoped_ptr.h" |  | 
| 14 #include "base/path_service.h" | 13 #include "base/path_service.h" | 
| 15 #include "base/win/scoped_handle.h" | 14 #include "base/win/scoped_handle.h" | 
| 16 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" | 
| 17 #include "sandbox/win/tests/common/controller.h" | 16 #include "sandbox/win/tests/common/controller.h" | 
| 18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" | 
| 19 | 18 | 
| 20 namespace sandbox { | 19 namespace sandbox { | 
| 21 | 20 | 
| 22 class AddressSanitizerTests : public ::testing::Test { | 21 class AddressSanitizerTests : public ::testing::Test { | 
| 23  public: | 22  public: | 
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 100     size_t last_slash = source_file_basename.find_last_of("/\\"); | 99     size_t last_slash = source_file_basename.find_last_of("/\\"); | 
| 101     last_slash = last_slash == std::string::npos ? 0 : last_slash + 1; | 100     last_slash = last_slash == std::string::npos ? 0 : last_slash + 1; | 
| 102     ASSERT_TRUE(strstr(data.c_str(), &source_file_basename[last_slash])) | 101     ASSERT_TRUE(strstr(data.c_str(), &source_file_basename[last_slash])) | 
| 103         << "The stack trace doesn't have a correct filename:\n" << data; | 102         << "The stack trace doesn't have a correct filename:\n" << data; | 
| 104   } else { | 103   } else { | 
| 105     LOG(WARNING) << "Not an AddressSanitizer build, skipping the run."; | 104     LOG(WARNING) << "Not an AddressSanitizer build, skipping the run."; | 
| 106   } | 105   } | 
| 107 } | 106 } | 
| 108 | 107 | 
| 109 } | 108 } | 
| OLD | NEW | 
|---|