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

Side by Side Diff: base/string_piece_unittest.cc

Issue 9730: NO CODE CHANGE. Update string_piece.h to new include style. Really just wan... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « base/string_piece.cc ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 5 #include <string>
6 6
7 #include "base/string_piece.h" 7 #include "base/string_piece.h"
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 531
532 TEST(StringPieceTest, StringCompareNotAmbiguous) { 532 TEST(StringPieceTest, StringCompareNotAmbiguous) {
533 ASSERT_TRUE("hello" == std::string("hello")); 533 ASSERT_TRUE("hello" == std::string("hello"));
534 ASSERT_TRUE("hello" < std::string("world")); 534 ASSERT_TRUE("hello" < std::string("world"));
535 } 535 }
536 536
537 TEST(StringPieceTest, HeterogenousStringPieceEquals) { 537 TEST(StringPieceTest, HeterogenousStringPieceEquals) {
538 ASSERT_TRUE(StringPiece("hello") == std::string("hello")); 538 ASSERT_TRUE(StringPiece("hello") == std::string("hello"));
539 ASSERT_TRUE("hello" == StringPiece("hello")); 539 ASSERT_TRUE("hello" == StringPiece("hello"));
540 } 540 }
541
OLDNEW
« no previous file with comments | « base/string_piece.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698