blob: dd5f31f36e8388dac13938dd8253fee4a76d094b [file] [log] [blame] [edit]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class TestURLSelectionOperation {
async run(urls, data) {
if (data && data.hasOwnProperty('setKey') &&
data.hasOwnProperty('setValue')) {
await sharedStorage.set(data['setKey'], data['setValue']);
}
if (data && data.hasOwnProperty('mockResult')) {
return data['mockResult'];
}
return -1;
}
}
register('test-url-selection-operation', TestURLSelectionOperation);