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

Side by Side Diff: content/renderer/date_time_formatter_unittest.cc

Issue 18252003: Replace third_party/icu/public with third_party/icu/source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll ICU to 211851 Created 7 years, 5 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 | « content/renderer/date_time_formatter.cc ('k') | content/renderer/hyphenator/hyphenator.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 <map> 5 #include <map>
6 6
7 #include "content/renderer/date_time_formatter.h" 7 #include "content/renderer/date_time_formatter.h"
8 #include "content/renderer/renderer_date_time_picker.h" 8 #include "content/renderer/renderer_date_time_picker.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/WebKit/public/web/WebDateTimeChooserParams.h" 10 #include "third_party/WebKit/public/web/WebDateTimeChooserParams.h"
11 #include "third_party/icu/public/common/unicode/unistr.h" 11 #include "third_party/icu/source/common/unicode/unistr.h"
12 #include "ui/base/ime/text_input_type.h" 12 #include "ui/base/ime/text_input_type.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class RendererDateTimePickerTest { 16 class RendererDateTimePickerTest {
17 }; 17 };
18 18
19 TEST(RendererDateTimePickerTest, TestParserValidStringInputs) { 19 TEST(RendererDateTimePickerTest, TestParserValidStringInputs) {
20 WebKit::WebDateTimeChooserParams params; 20 WebKit::WebDateTimeChooserParams params;
21 params.currentValue = "2010-07"; 21 params.currentValue = "2010-07";
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 EXPECT_EQ("", sut6.GetFormattedValue()); 162 EXPECT_EQ("", sut6.GetFormattedValue());
163 163
164 DateTimeFormatter sut7(ui::TEXT_INPUT_TYPE_MAX, 23, 0, 0, 0, 5, 0, 0, 0); 164 DateTimeFormatter sut7(ui::TEXT_INPUT_TYPE_MAX, 23, 0, 0, 0, 5, 0, 0, 0);
165 EXPECT_EQ("", sut7.GetFormattedValue()); 165 EXPECT_EQ("", sut7.GetFormattedValue());
166 166
167 DateTimeFormatter sut8( 167 DateTimeFormatter sut8(
168 static_cast<ui::TextInputType>(10000), 23, 0, 0, 0, 5, 0, 0, 0); 168 static_cast<ui::TextInputType>(10000), 23, 0, 0, 0, 5, 0, 0, 0);
169 EXPECT_EQ("", sut8.GetFormattedValue()); 169 EXPECT_EQ("", sut8.GetFormattedValue());
170 } 170 }
171 } // namespace content 171 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/date_time_formatter.cc ('k') | content/renderer/hyphenator/hyphenator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698