diff options
author | Yu Ping Hu <yph@google.com> | 2014-02-03 16:45:32 -0800 |
---|---|---|
committer | Yu Ping Hu <yph@google.com> | 2014-03-19 23:45:22 +0000 |
commit | 6c4254903d2f42836c5b74a934e54441ccee6dbe (patch) | |
tree | 6383ca9ac886b65e9ccd879d7e29a3392aafe85c /tests/src | |
parent | e7e74f5d67647510a0394dcc8346a9cd7781d970 (diff) | |
download | android_packages_apps_Exchange-6c4254903d2f42836c5b74a934e54441ccee6dbe.tar.gz android_packages_apps_Exchange-6c4254903d2f42836c5b74a934e54441ccee6dbe.tar.bz2 android_packages_apps_Exchange-6c4254903d2f42836c5b74a934e54441ccee6dbe.zip |
Add EasService & PingSyncSynchronizer.
This is the first step to decoupling actual sync execution from
the mail sync adapter. This change does not yet move to using the
new service, it only adds the code and necessary changes to existing
operations to be compatible with it. This change should not affect
existing functionality.
Change-Id: I80663c2bc216fdee44756d83fd567bc2c447e993
(cherry picked from commit 6c715246946dc4a7b7ca535dd9ff7f3cfc227c6d)
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/exchange/service/PingSyncSynchronizerTest.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/src/com/android/exchange/service/PingSyncSynchronizerTest.java b/tests/src/com/android/exchange/service/PingSyncSynchronizerTest.java new file mode 100644 index 00000000..40235d84 --- /dev/null +++ b/tests/src/com/android/exchange/service/PingSyncSynchronizerTest.java @@ -0,0 +1,36 @@ +/* + * 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.exchange.service; + +import android.app.Service; +import android.content.Intent; +import android.os.IBinder; +import android.test.AndroidTestCase; + +import android.test.suitebuilder.annotation.SmallTest; + +@SmallTest +public class PingSyncSynchronizerTest extends AndroidTestCase { + + private static class StubService extends Service { + @Override + public IBinder onBind(final Intent intent) { + return null; + } + } + +} |