10f333af62f6f39a9cdc1bd0521345cd3a39c29e3Christopher Wiley# Copyright 2015 The Chromium OS Authors. All rights reserved. 20f333af62f6f39a9cdc1bd0521345cd3a39c29e3Christopher Wiley# Use of this source code is governed by a BSD-style license that can be 30f333af62f6f39a9cdc1bd0521345cd3a39c29e3Christopher Wiley# found in the LICENSE file. 40f333af62f6f39a9cdc1bd0521345cd3a39c29e3Christopher Wiley 50f333af62f6f39a9cdc1bd0521345cd3a39c29e3Christopher Wileyclass FakeOAuth(object): 628c4689b8f25a7ddbff3d1c84d5e675994877b41David Zeuthen """A Fake for oauth.OAuth to be used in unit-tests.""" 70f333af62f6f39a9cdc1bd0521345cd3a39c29e3Christopher Wiley 80f333af62f6f39a9cdc1bd0521345cd3a39c29e3Christopher Wiley 928c4689b8f25a7ddbff3d1c84d5e675994877b41David Zeuthen def is_request_authorized(self): 1028c4689b8f25a7ddbff3d1c84d5e675994877b41David Zeuthen """Checks if the access token in an incoming request is correct.""" 1128c4689b8f25a7ddbff3d1c84d5e675994877b41David Zeuthen return True 12