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 3# found in the LICENSE file. 4from telemetry.internal.backends import facebook_credentials_backend 5from telemetry.internal.backends \ 6 import form_based_credentials_backend_unittest_base 7 8 9class TestFacebookCredentialsBackend( 10 form_based_credentials_backend_unittest_base. 11 FormBasedCredentialsBackendUnitTestBase): 12 def setUp(self): 13 self._credentials_type = 'facebook' 14 15 def testLoginUsingMock(self): 16 backend = facebook_credentials_backend.FacebookCredentialsBackend() 17 self._LoginUsingMock(backend, backend.url, backend.login_input_id, 18 backend.password_input_id, backend.login_form_id, 19 backend.logged_in_javascript) 20