Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: chrome/browser/enumerate_modules_model_unittest_win.cc

Issue 15200005: Grab bag of clang fixes for Windows code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ptr and cast style Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698