OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/string_util.h" | 5 #include "base/string_util.h" |
6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/enumerate_modules_model_win.h" | 8 #include "chrome/browser/enumerate_modules_model_win.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 typedef public testing::Test EnumerateModulesTest; | 11 typedef testing::Test EnumerateModulesTest; |
12 | 12 |
13 // Set up some constants to use as default when creating the structs. | 13 // Set up some constants to use as default when creating the structs. |
14 static const ModuleEnumerator::ModuleType kType = | 14 static const ModuleEnumerator::ModuleType kType = |
15 ModuleEnumerator::LOADED_MODULE; | 15 ModuleEnumerator::LOADED_MODULE; |
16 | 16 |
17 static const ModuleEnumerator::ModuleStatus kStatus = | 17 static const ModuleEnumerator::ModuleStatus kStatus = |
18 ModuleEnumerator::NOT_MATCHED; | 18 ModuleEnumerator::NOT_MATCHED; |
19 | 19 |
20 static const ModuleEnumerator::RecommendedAction kAction = | 20 static const ModuleEnumerator::RecommendedAction kAction = |
21 ModuleEnumerator::NONE; | 21 ModuleEnumerator::NONE; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 ModuleEnumerator::Module module; | 230 ModuleEnumerator::Module module; |
231 module.location = kCollapsePathList[i].test_case; | 231 module.location = kCollapsePathList[i].test_case; |
232 module_enumerator->CollapsePath(&module); | 232 module_enumerator->CollapsePath(&module); |
233 | 233 |
234 SCOPED_TRACE("Test case no " + base::IntToString(i) + | 234 SCOPED_TRACE("Test case no " + base::IntToString(i) + |
235 ": '" + UTF16ToASCII(kCollapsePathList[i].expected_result) + | 235 ": '" + UTF16ToASCII(kCollapsePathList[i].expected_result) + |
236 "'"); | 236 "'"); |
237 EXPECT_EQ(kCollapsePathList[i].expected_result, module.location); | 237 EXPECT_EQ(kCollapsePathList[i].expected_result, module.location); |
238 } | 238 } |
239 } | 239 } |
OLD | NEW |