@@ -71,8 +71,8 @@ void ExpectDoesNotHaveSubstr(absl::string_view s, absl::string_view expected) {
7171 << " '" << s << " ' contains '" << expected << " '" ;
7272}
7373
74- void ExpectSubstrOrder (const string& s, const string& before,
75- const string& after) {
74+ void ExpectSubstrOrder (const std:: string& s, const std:: string& before,
75+ const std:: string& after) {
7676 int before_pos = s.find (before);
7777 int after_pos = s.find (after);
7878 ASSERT_NE (std::string::npos, before_pos);
@@ -84,9 +84,9 @@ void ExpectSubstrOrder(const string& s, const string& before,
8484// Runs WriteCCOps and stores output in (internal_)cc_file_path and
8585// (internal_)h_file_path.
8686void GenerateCcOpFiles (Env* env, const OpList& ops,
87- const ApiDefMap& api_def_map, string* h_file_text,
88- string* internal_h_file_text) {
89- const string& tmpdir = testing::TmpDir ();
87+ const ApiDefMap& api_def_map, std:: string* h_file_text,
88+ std:: string* internal_h_file_text) {
89+ const std:: string& tmpdir = testing::TmpDir ();
9090
9191 const auto h_file_path = io::JoinPath (tmpdir, " test.h" );
9292 const auto cc_file_path = io::JoinPath (tmpdir, " test.cc" );
@@ -101,7 +101,7 @@ void GenerateCcOpFiles(Env* env, const OpList& ops,
101101}
102102
103103TEST (CcOpGenTest, TestVisibilityChangedToHidden) {
104- const string api_def = R"(
104+ const std:: string api_def = R"(
105105op {
106106 graph_op_name: "Foo"
107107 visibility: HIDDEN
112112 protobuf::TextFormat::ParseFromString (kBaseOpDef , &op_defs); // NOLINT
113113 ApiDefMap api_def_map (op_defs);
114114
115- string h_file_text, internal_h_file_text;
115+ std:: string h_file_text, internal_h_file_text;
116116 // Without ApiDef
117117 GenerateCcOpFiles (env, op_defs, api_def_map, &h_file_text,
118118 &internal_h_file_text);
128128}
129129
130130TEST (CcOpGenTest, TestArgNameChanges) {
131- const string api_def = R"(
131+ const std:: string api_def = R"(
132132op {
133133 graph_op_name: "Foo"
134134 arg_order: "dim"
140140 protobuf::TextFormat::ParseFromString (kBaseOpDef , &op_defs); // NOLINT
141141
142142 ApiDefMap api_def_map (op_defs);
143- string cc_file_text, h_file_text;
144- string internal_cc_file_text, internal_h_file_text;
143+ std:: string cc_file_text, h_file_text;
144+ std:: string internal_cc_file_text, internal_h_file_text;
145145 // Without ApiDef
146146 GenerateCcOpFiles (env, op_defs, api_def_map, &h_file_text,
147147 &internal_h_file_text);
155155}
156156
157157TEST (CcOpGenTest, TestEndpoints) {
158- const string api_def = R"(
158+ const std:: string api_def = R"(
159159op {
160160 graph_op_name: "Foo"
161161 endpoint {
171171 protobuf::TextFormat::ParseFromString (kBaseOpDef , &op_defs); // NOLINT
172172
173173 ApiDefMap api_def_map (op_defs);
174- string cc_file_text, h_file_text;
175- string internal_cc_file_text, internal_h_file_text;
174+ std:: string cc_file_text, h_file_text;
175+ std:: string internal_cc_file_text, internal_h_file_text;
176176 // Without ApiDef
177177 GenerateCcOpFiles (env, op_defs, api_def_map, &h_file_text,
178178 &internal_h_file_text);
0 commit comments