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

Side by Side Diff: base/test/launcher/test_result.cc

Issue 1544113002: Switch to standard integer types in base/test/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « base/test/launcher/test_launcher_ios.cc ('k') | base/test/launcher/test_results_tracker.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/launcher/test_result.h" 5 #include "base/test/launcher/test_result.h"
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 10
9 namespace base { 11 namespace base {
10 12
11 TestResult::TestResult() : status(TEST_UNKNOWN) { 13 TestResult::TestResult() : status(TEST_UNKNOWN) {
12 } 14 }
13 15
14 TestResult::~TestResult() { 16 TestResult::~TestResult() {
15 } 17 }
16 18
(...skipping 26 matching lines...) Expand all
43 return full_name.substr(dot_pos + 1); 45 return full_name.substr(dot_pos + 1);
44 } 46 }
45 47
46 std::string TestResult::GetTestCaseName() const { 48 std::string TestResult::GetTestCaseName() const {
47 size_t dot_pos = full_name.find('.'); 49 size_t dot_pos = full_name.find('.');
48 CHECK_NE(dot_pos, std::string::npos); 50 CHECK_NE(dot_pos, std::string::npos);
49 return full_name.substr(0, dot_pos); 51 return full_name.substr(0, dot_pos);
50 } 52 }
51 53
52 } // namespace base 54 } // namespace base
OLDNEW
« no previous file with comments | « base/test/launcher/test_launcher_ios.cc ('k') | base/test/launcher/test_results_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698