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 package org.chromium.sync.notifier; | 5 package org.chromium.components.sync.notifier; |
6 | 6 |
7 import android.test.InstrumentationTestCase; | 7 import android.test.InstrumentationTestCase; |
8 import android.test.suitebuilder.annotation.SmallTest; | 8 import android.test.suitebuilder.annotation.SmallTest; |
9 | 9 |
10 import org.chromium.base.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
11 | 11 |
12 import java.util.Arrays; | 12 import java.util.Arrays; |
13 | 13 |
14 /** Tests for the {@link InvalidationClientNameProvider} */ | 14 /** Tests for the {@link InvalidationClientNameProvider} */ |
15 public class InvalidationClientNameProviderTest extends InstrumentationTestCase
{ | 15 public class InvalidationClientNameProviderTest extends InstrumentationTestCase
{ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 private static void registerHardCodedGenerator(InvalidationClientNameProvide
r provider) { | 58 private static void registerHardCodedGenerator(InvalidationClientNameProvide
r provider) { |
59 provider.setPreferredClientNameGenerator(new InvalidationClientNameGener
ator() { | 59 provider.setPreferredClientNameGenerator(new InvalidationClientNameGener
ator() { |
60 @Override | 60 @Override |
61 public byte[] generateInvalidatorClientName() { | 61 public byte[] generateInvalidatorClientName() { |
62 return "Testable ID".getBytes(); | 62 return "Testable ID".getBytes(); |
63 } | 63 } |
64 }); | 64 }); |
65 } | 65 } |
66 } | 66 } |
OLD | NEW |