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

Side by Side Diff: base/i18n/rtl_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/i18n/number_formatting_unittest.cc ('k') | base/i18n/streaming_utf8_validator_perftest.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 (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 "base/i18n/rtl.h" 5 #include "base/i18n/rtl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/test/icu_test_util.h" 13 #include "base/test/icu_test_util.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/googletest/include/gtest/gtest.h"
15 #include "testing/platform_test.h" 15 #include "testing/platform_test.h"
16 #include "third_party/icu/source/i18n/unicode/usearch.h" 16 #include "third_party/icu/source/i18n/unicode/usearch.h"
17 17
18 namespace base { 18 namespace base {
19 namespace i18n { 19 namespace i18n {
20 20
21 namespace { 21 namespace {
22 22
23 // A test utility function to set the application default text direction. 23 // A test utility function to set the application default text direction.
24 void SetRTL(bool rtl) { 24 void SetRTL(bool rtl) {
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 EXPECT_EQ(test_case, adjusted_string) << " for test case [" << test_case 458 EXPECT_EQ(test_case, adjusted_string) << " for test case [" << test_case
459 << "] with IsRTL() == " << IsRTL(); 459 << "] with IsRTL() == " << IsRTL();
460 } 460 }
461 } 461 }
462 462
463 EXPECT_EQ(was_rtl, IsRTL()); 463 EXPECT_EQ(was_rtl, IsRTL());
464 } 464 }
465 465
466 } // namespace i18n 466 } // namespace i18n
467 } // namespace base 467 } // namespace base
OLDNEW
« no previous file with comments | « base/i18n/number_formatting_unittest.cc ('k') | base/i18n/streaming_utf8_validator_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698