1/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package android.content;
17
18import android.content.ContentResolver;
19import android.provider.ContactsContract;
20import android.test.AndroidTestCase;
21import android.test.suitebuilder.annotation.LargeTest;
22import android.test.suitebuilder.annotation.Suppress;
23
24@Suppress  // Failing.
25public class ContentResolverTest extends AndroidTestCase {
26    private ContentResolver mContentResolver;
27
28    @Override
29    protected void setUp() throws Exception {
30        super.setUp();
31        mContentResolver = mContext.getContentResolver();
32    }
33
34    @LargeTest
35    public void testCursorFinalizer() throws Exception {
36        // TODO: Want a test case that more predictably reproduce this issue. Selected
37        // 600 as this causes the problem 100% of the runs on current hw, it might not
38        // do so on some other configuration though.
39        for (int i = 0; i < 600; i++) {
40            mContentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
41        }
42    }
43}
44