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

Side by Side Diff: testing/gmock/src/gmock-printers.cc

Issue 521012: Update gmock and gtest. (Closed)
Patch Set: update readme Created 10 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 | « testing/gmock/src/gmock-matchers.cc ('k') | testing/gmock/src/gmock-spec-builders.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 2007, Google Inc. 1 // Copyright 2007, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 289 }
290 #endif // wchar_t is native 290 #endif // wchar_t is native
291 291
292 // Prints a ::string object. 292 // Prints a ::string object.
293 #if GTEST_HAS_GLOBAL_STRING 293 #if GTEST_HAS_GLOBAL_STRING
294 void PrintStringTo(const ::string& s, ostream* os) { 294 void PrintStringTo(const ::string& s, ostream* os) {
295 PrintCharsAsStringTo(s.data(), s.size(), os); 295 PrintCharsAsStringTo(s.data(), s.size(), os);
296 } 296 }
297 #endif // GTEST_HAS_GLOBAL_STRING 297 #endif // GTEST_HAS_GLOBAL_STRING
298 298
299 #if GTEST_HAS_STD_STRING
300 void PrintStringTo(const ::std::string& s, ostream* os) { 299 void PrintStringTo(const ::std::string& s, ostream* os) {
301 PrintCharsAsStringTo(s.data(), s.size(), os); 300 PrintCharsAsStringTo(s.data(), s.size(), os);
302 } 301 }
303 #endif // GTEST_HAS_STD_STRING
304 302
305 // Prints a ::wstring object. 303 // Prints a ::wstring object.
306 #if GTEST_HAS_GLOBAL_WSTRING 304 #if GTEST_HAS_GLOBAL_WSTRING
307 void PrintWideStringTo(const ::wstring& s, ostream* os) { 305 void PrintWideStringTo(const ::wstring& s, ostream* os) {
308 PrintWideCharsAsStringTo(s.data(), s.size(), os); 306 PrintWideCharsAsStringTo(s.data(), s.size(), os);
309 } 307 }
310 #endif // GTEST_HAS_GLOBAL_WSTRING 308 #endif // GTEST_HAS_GLOBAL_WSTRING
311 309
312 #if GTEST_HAS_STD_WSTRING 310 #if GTEST_HAS_STD_WSTRING
313 void PrintWideStringTo(const ::std::wstring& s, ostream* os) { 311 void PrintWideStringTo(const ::std::wstring& s, ostream* os) {
314 PrintWideCharsAsStringTo(s.data(), s.size(), os); 312 PrintWideCharsAsStringTo(s.data(), s.size(), os);
315 } 313 }
316 #endif // GTEST_HAS_STD_WSTRING 314 #endif // GTEST_HAS_STD_WSTRING
317 315
318 } // namespace internal 316 } // namespace internal
319 317
320 } // namespace testing 318 } // namespace testing
OLDNEW
« no previous file with comments | « testing/gmock/src/gmock-matchers.cc ('k') | testing/gmock/src/gmock-spec-builders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698