1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 function testManualPolicy() {
7 testConflictResolutionPolicy('manual', testStep.shift());
9 function testLastWriteWinPolicy() {
10 testConflictResolutionPolicy('last_write_win', chrome.test.callbackPass());
14 function testConflictResolutionPolicy(policy, callback) {
16 function setManualPolicy() {
17 chrome.syncFileSystem.setConflictResolutionPolicy(
18 policy, chrome.test.callbackPass(steps.shift()));
20 function getManualPolicy() {
21 chrome.syncFileSystem.getConflictResolutionPolicy(
22 chrome.test.callbackPass(steps.shift()));
24 function checkManualPolicy(policy_returned) {
25 chrome.test.assertEq(policy, policy_returned);
32 chrome.test.runTests([