| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chrome_elf_init_win.h" | 5 #include "chrome/browser/chrome_elf_init_win.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 | 219 |
| 220 // Add test dll to blacklist | 220 // Add test dll to blacklist |
| 221 blacklist::AddDllToBlacklist(kTestDllName); | 221 blacklist::AddDllToBlacklist(kTestDllName); |
| 222 | 222 |
| 223 // Check that the test dll appears in list. | 223 // Check that the test dll appears in list. |
| 224 module_names.clear(); | 224 module_names.clear(); |
| 225 EXPECT_TRUE(GetLoadedBlacklistedModules(&module_names)); | 225 EXPECT_TRUE(GetLoadedBlacklistedModules(&module_names)); |
| 226 ASSERT_EQ(1, module_names.size()); | 226 ASSERT_EQ(1, module_names.size()); |
| 227 EXPECT_STREQ(kTestDllName, | 227 EXPECT_STREQ(kTestDllName, |
| 228 StringToLowerASCII( | 228 base::StringToLowerASCII( |
| 229 base::FilePath(module_names[0]).BaseName().value()).c_str()); | 229 base::FilePath(module_names[0]).BaseName().value()).c_str()); |
| 230 } | 230 } |
| 231 | 231 |
| 232 } // namespace | 232 } // namespace |
| OLD | NEW |