diff options
author | Jin Cao <jinyan@google.com> | 2014-06-18 07:06:42 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-06-18 07:06:42 +0000 |
commit | 3ecca77461c181474162acada1d956f45d6cdbb6 (patch) | |
tree | 555c0346226d71b7c731e7a0fb0fad8fbfc3eb3b /tests | |
parent | 119f5a51d761c7e28670898526240b89cb0d071e (diff) | |
parent | 77b4c2c31d7601665c337ce5cbc9d84fb9332be8 (diff) | |
download | android_packages_apps_UnifiedEmail-3ecca77461c181474162acada1d956f45d6cdbb6.tar.gz android_packages_apps_UnifiedEmail-3ecca77461c181474162acada1d956f45d6cdbb6.tar.bz2 android_packages_apps_UnifiedEmail-3ecca77461c181474162acada1d956f45d6cdbb6.zip |
am 77b4c2c3: Minimum html support using Html class (no ol/ul)
* commit '77b4c2c31d7601665c337ce5cbc9d84fb9332be8':
Minimum html support using Html class (no ol/ul)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/mail/utils/HtmlUtilsTest.java | 25 | ||||
-rw-r--r-- | tests/src/com/android/mail/utils/NotificationUtilsTest.java | 8 |
2 files changed, 29 insertions, 4 deletions
diff --git a/tests/src/com/android/mail/utils/HtmlUtilsTest.java b/tests/src/com/android/mail/utils/HtmlUtilsTest.java new file mode 100644 index 000000000..24b39076a --- /dev/null +++ b/tests/src/com/android/mail/utils/HtmlUtilsTest.java @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.mail.utils; + +import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; + +@SmallTest +public class HtmlUtilsTest extends AndroidTestCase { + // TODO (jin) IMPLEMENT ME +} diff --git a/tests/src/com/android/mail/utils/NotificationUtilsTest.java b/tests/src/com/android/mail/utils/NotificationUtilsTest.java index 1f8c01fef..925438f69 100644 --- a/tests/src/com/android/mail/utils/NotificationUtilsTest.java +++ b/tests/src/com/android/mail/utils/NotificationUtilsTest.java @@ -38,9 +38,9 @@ public class NotificationUtilsTest extends AndroidTestCase { // Get the html "tree" for this message body final HtmlTree htmlTree = Utils.getHtmlTree(html); - htmlTree.setPlainTextConverterFactory(new HtmlTree.PlainTextConverterFactory() { + htmlTree.setConverterFactory(new HtmlTree.ConverterFactory() { @Override - public HtmlTree.PlainTextConverter createInstance() { + public HtmlTree.Converter<String> createInstance() { return new MailMessagePlainTextConverter(); } }); @@ -65,9 +65,9 @@ public class NotificationUtilsTest extends AndroidTestCase { // Get the html "tree" for this message body final HtmlTree htmlTree = Utils.getHtmlTree(html); - htmlTree.setPlainTextConverterFactory(new HtmlTree.PlainTextConverterFactory() { + htmlTree.setConverterFactory(new HtmlTree.ConverterFactory() { @Override - public HtmlTree.PlainTextConverter createInstance() { + public HtmlTree.Converter<String> createInstance() { return new MailMessagePlainTextConverter(); } }); |