OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "content/test/test_blink_web_unit_test_support.h" | 5 #include "content/test/test_blink_web_unit_test_support.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 case blink::WebLocalizedString::OtherWeekLabel: | 215 case blink::WebLocalizedString::OtherWeekLabel: |
216 return base::ASCIIToUTF16("<<OtherWeekLabel>>"); | 216 return base::ASCIIToUTF16("<<OtherWeekLabel>>"); |
217 case blink::WebLocalizedString::CalendarClear: | 217 case blink::WebLocalizedString::CalendarClear: |
218 return base::ASCIIToUTF16("<<CalendarClear>>"); | 218 return base::ASCIIToUTF16("<<CalendarClear>>"); |
219 case blink::WebLocalizedString::CalendarToday: | 219 case blink::WebLocalizedString::CalendarToday: |
220 return base::ASCIIToUTF16("<<CalendarToday>>"); | 220 return base::ASCIIToUTF16("<<CalendarToday>>"); |
221 case blink::WebLocalizedString::ThisMonthButtonLabel: | 221 case blink::WebLocalizedString::ThisMonthButtonLabel: |
222 return base::ASCIIToUTF16("<<ThisMonthLabel>>"); | 222 return base::ASCIIToUTF16("<<ThisMonthLabel>>"); |
223 case blink::WebLocalizedString::ThisWeekButtonLabel: | 223 case blink::WebLocalizedString::ThisWeekButtonLabel: |
224 return base::ASCIIToUTF16("<<ThisWeekLabel>>"); | 224 return base::ASCIIToUTF16("<<ThisWeekLabel>>"); |
| 225 case blink::WebLocalizedString::ValidationValueMissing: |
| 226 return base::ASCIIToUTF16("<<ValidationValueMissing>>"); |
225 case blink::WebLocalizedString::WeekFormatTemplate: | 227 case blink::WebLocalizedString::WeekFormatTemplate: |
226 return base::ASCIIToUTF16("Week $2, $1"); | 228 return base::ASCIIToUTF16("Week $2, $1"); |
227 default: | 229 default: |
228 return blink::WebString(); | 230 return blink::WebString(); |
229 } | 231 } |
230 } | 232 } |
231 | 233 |
232 blink::WebString TestBlinkWebUnitTestSupport::queryLocalizedString( | 234 blink::WebString TestBlinkWebUnitTestSupport::queryLocalizedString( |
233 blink::WebLocalizedString::Name name, | 235 blink::WebLocalizedString::Name name, |
234 const blink::WebString& value) { | 236 const blink::WebString& value) { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 base::MessageLoop::current()->QuitWhenIdle(); | 369 base::MessageLoop::current()->QuitWhenIdle(); |
368 } | 370 } |
369 | 371 |
370 void TestBlinkWebUnitTestSupport::getPluginList( | 372 void TestBlinkWebUnitTestSupport::getPluginList( |
371 bool refresh, blink::WebPluginListBuilder* builder) { | 373 bool refresh, blink::WebPluginListBuilder* builder) { |
372 builder->addPlugin("pdf", "pdf", "pdf-files"); | 374 builder->addPlugin("pdf", "pdf", "pdf-files"); |
373 builder->addMediaTypeToLastPlugin("application/pdf", "pdf"); | 375 builder->addMediaTypeToLastPlugin("application/pdf", "pdf"); |
374 } | 376 } |
375 | 377 |
376 } // namespace content | 378 } // namespace content |
OLD | NEW |