Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/sync/FakeProfileSyncService.java

Issue 2551023006: [Sync] SyncEngine 1.5: Fix all backend references in PSS. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.chrome.browser.sync; 5 package org.chromium.chrome.browser.sync;
6 6
7 /** 7 /**
8 * Fake some ProfileSyncService methods for testing. 8 * Fake some ProfileSyncService methods for testing.
9 * 9 *
10 * Only what has been needed for tests so far has been faked. 10 * Only what has been needed for tests so far has been faked.
11 */ 11 */
12 public class FakeProfileSyncService extends ProfileSyncService { 12 public class FakeProfileSyncService extends ProfileSyncService {
13 13
14 private boolean mBackendInitialized; 14 private boolean mBackendInitialized;
skym 2016/12/05 19:38:55 Should this variable get updated?
maxbogue 2016/12/05 22:17:10 Done.
15 15
16 public FakeProfileSyncService() { 16 public FakeProfileSyncService() {
17 super(); 17 super();
18 } 18 }
19 19
20 @Override 20 @Override
21 public boolean isBackendInitialized() { 21 public boolean isEngineInitialized() {
22 return mBackendInitialized; 22 return mBackendInitialized;
23 } 23 }
24 24
25 public void setSyncInitialized(boolean syncInitialized) { 25 public void setSyncInitialized(boolean syncInitialized) {
26 mBackendInitialized = syncInitialized; 26 mBackendInitialized = syncInitialized;
27 } 27 }
28 28
29 @Override 29 @Override
30 public boolean isUsingSecondaryPassphrase() { 30 public boolean isUsingSecondaryPassphrase() {
31 return true; 31 return true;
32 } 32 }
33 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698