| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |