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

Unified Diff: tools/telemetry/telemetry/core/backends/codepen_credentials_backend_unittest.py

Issue 531733004: Revert of Revert of Add support for codepen to form_based_credentials_background (patchset #9 of h… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/core/backends/codepen_credentials_backend_unittest.py
diff --git a/tools/telemetry/telemetry/core/backends/google_credentials_backend_unittest.py b/tools/telemetry/telemetry/core/backends/codepen_credentials_backend_unittest.py
similarity index 50%
copy from tools/telemetry/telemetry/core/backends/google_credentials_backend_unittest.py
copy to tools/telemetry/telemetry/core/backends/codepen_credentials_backend_unittest.py
index 4298edf976bc03d658f098454903a538a265e13b..43ecb5e986d35bd620624e593c27d722e4df7efa 100644
--- a/tools/telemetry/telemetry/core/backends/google_credentials_backend_unittest.py
+++ b/tools/telemetry/telemetry/core/backends/codepen_credentials_backend_unittest.py
@@ -1,17 +1,18 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
+# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.core.backends import form_based_credentials_backend_unittest_base
-from telemetry.core.backends import google_credentials_backend
+from telemetry.core.backends import codepen_credentials_backend
-class TestGoogleCredentialsBackend(
+class TestCodePenCredentialsBackend(
form_based_credentials_backend_unittest_base.
FormBasedCredentialsBackendUnitTestBase):
def setUp(self):
- self._credentials_type = 'google'
+ self._credentials_type = 'codepen'
def testLoginUsingMock(self):
- backend = google_credentials_backend.GoogleCredentialsBackend()
+ backend = codepen_credentials_backend.CodePenCredentialsBackend()
self._LoginUsingMock(backend, backend.url, backend.login_input_id,
- backend.password_input_id)
+ backend.password_input_id, backend.login_form_id,
+ backend.logged_in_javascript)

Powered by Google App Engine
This is Rietveld 408576698