| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 package org.chromium.mojo.bindings; | 5 package org.chromium.mojo.bindings; |
| 6 | 6 |
| 7 import android.test.suitebuilder.annotation.SmallTest; | 7 import android.test.suitebuilder.annotation.SmallTest; |
| 8 import android.util.Log; | 8 import android.util.Log; |
| 9 | 9 |
| 10 import org.chromium.base.test.util.DisabledTest; |
| 10 import org.chromium.base.test.util.UrlUtils; | 11 import org.chromium.base.test.util.UrlUtils; |
| 11 import org.chromium.mojo.HandleMock; | 12 import org.chromium.mojo.HandleMock; |
| 12 import org.chromium.mojo.MojoTestCase; | 13 import org.chromium.mojo.MojoTestCase; |
| 13 import org.chromium.mojo.bindings.test.mojom.mojo.ConformanceTestInterface; | 14 import org.chromium.mojo.bindings.test.mojom.mojo.ConformanceTestInterface; |
| 14 import org.chromium.mojo.bindings.test.mojom.mojo.IntegrationTestInterface1; | 15 import org.chromium.mojo.bindings.test.mojom.mojo.IntegrationTestInterface1; |
| 15 import org.chromium.mojo.bindings.test.mojom.mojo.IntegrationTestInterface2TestH
elper; | 16 import org.chromium.mojo.bindings.test.mojom.mojo.IntegrationTestInterface2TestH
elper; |
| 16 import org.chromium.mojo.system.Handle; | 17 import org.chromium.mojo.system.Handle; |
| 17 | 18 |
| 18 import java.io.File; | 19 import java.io.File; |
| 19 import java.io.FileFilter; | 20 import java.io.FileFilter; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 170 } |
| 170 | 171 |
| 171 @Override | 172 @Override |
| 172 public boolean acceptWithResponder(Message message, MessageReceiver resp
onder) { | 173 public boolean acceptWithResponder(Message message, MessageReceiver resp
onder) { |
| 173 return false; | 174 return false; |
| 174 } | 175 } |
| 175 } | 176 } |
| 176 | 177 |
| 177 /** | 178 /** |
| 178 * Testing the conformance suite. | 179 * Testing the conformance suite. |
| 180 * Disabled: http://crbug.com/426564 |
| 179 */ | 181 */ |
| 180 @SmallTest | 182 @DisabledTest |
| 181 public void testConformance() throws FileNotFoundException { | 183 public void testConformance() throws FileNotFoundException { |
| 182 runTest("conformance_", ConformanceTestInterface.MANAGER.buildStub(null, | 184 runTest("conformance_", ConformanceTestInterface.MANAGER.buildStub(null, |
| 183 ConformanceTestInterface.MANAGER.buildProxy(null, new SinkMessag
eReceiver()))); | 185 ConformanceTestInterface.MANAGER.buildProxy(null, new SinkMessag
eReceiver()))); |
| 184 } | 186 } |
| 185 | 187 |
| 186 /** | 188 /** |
| 187 * Testing the integration suite. | 189 * Testing the integration suite. |
| 188 */ | 190 */ |
| 189 @SmallTest | 191 @SmallTest |
| 190 public void testIntegration() throws FileNotFoundException { | 192 public void testIntegration() throws FileNotFoundException { |
| 191 runTest("integration_", | 193 runTest("integration_", |
| 192 new RoutingMessageReceiver(IntegrationTestInterface1.MANAGER.bui
ldStub(null, | 194 new RoutingMessageReceiver(IntegrationTestInterface1.MANAGER.bui
ldStub(null, |
| 193 IntegrationTestInterface1.MANAGER.buildProxy(null, | 195 IntegrationTestInterface1.MANAGER.buildProxy(null, |
| 194 new SinkMessageReceiver())), | 196 new SinkMessageReceiver())), |
| 195 IntegrationTestInterface2TestHelper. | 197 IntegrationTestInterface2TestHelper. |
| 196 newIntegrationTestInterface2MethodCallback())); | 198 newIntegrationTestInterface2MethodCallback())); |
| 197 } | 199 } |
| 198 } | 200 } |
| OLD | NEW |