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

Side by Side Diff: components/autofill/browser/data_driven_test.cc

Issue 16469004: Use a direct include of strings headers in components/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « components/autofill/browser/data_driven_test.h ('k') | no next file » | 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 "components/autofill/browser/data_driven_test.h" 5 #include "components/autofill/browser/data_driven_test.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_enumerator.h" 8 #include "base/files/file_enumerator.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "chrome/common/chrome_paths.h" 11 #include "chrome/common/chrome_paths.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace autofill { 14 namespace autofill {
15 namespace { 15 namespace {
16 16
17 // Reads |file| into |content|, and converts Windows line-endings to Unix ones. 17 // Reads |file| into |content|, and converts Windows line-endings to Unix ones.
18 // Returns true on success. 18 // Returns true on success.
19 bool ReadFile(const base::FilePath& file, std::string* content) { 19 bool ReadFile(const base::FilePath& file, std::string* content) {
20 if (!file_util::ReadFileToString(file, content)) 20 if (!file_util::ReadFileToString(file, content))
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 return test_data_dir_; 85 return test_data_dir_;
86 } 86 }
87 87
88 DataDrivenTest::DataDrivenTest() { 88 DataDrivenTest::DataDrivenTest() {
89 } 89 }
90 90
91 DataDrivenTest::~DataDrivenTest() { 91 DataDrivenTest::~DataDrivenTest() {
92 } 92 }
93 93
94 } // namespace autofill 94 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/browser/data_driven_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698