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

Unified Diff: chrome/test/data/webui/settings/privacy_page_test.js

Issue 1838273003: MD Settings: Hooking up native certificate manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Spaces. Created 4 years, 9 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
« no previous file with comments | « chrome/test/data/webui/settings/cr_settings_browsertest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/privacy_page_test.js
diff --git a/chrome/test/data/webui/settings/privacy_page_test.js b/chrome/test/data/webui/settings/privacy_page_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..0d949a4ab4d5a31f2a7e87cc195739c7e7616d8c
--- /dev/null
+++ b/chrome/test/data/webui/settings/privacy_page_test.js
@@ -0,0 +1,46 @@
+// Copyright 2016 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.
+
+cr.define('settings_privacy_page', function() {
+ /**
+ * @constructor
+ * @extends {TestBrowserProxy}
+ * @implements {settings.PrivacyPageBrowserProxy}
+ */
+ function TestPrivacyPageBrowserProxy() {
+ settings.TestBrowserProxy.call(this, ['showManageSSLCertificates']);
+ }
+
+ TestPrivacyPageBrowserProxy.prototype = {
+ __proto__: settings.TestBrowserProxy.prototype,
+
+ /** @override */
+ showManageSSLCertificates: function() {
+ this.methodCalled('showManageSSLCertificates');
+ },
+ };
+
+ suite('PrivacyPage', function() {
+ /** @type {settings.TestPrivacyPageBrowserProxy} */
+ var testBrowserProxy;
+
+ /** @type {SettingsPrivacyPageElement} */
+ var page;
+
+ setup(function() {
+ testBrowserProxy = new TestPrivacyPageBrowserProxy();
+ settings.PrivacyPageBrowserProxyImpl.instance_ = testBrowserProxy;
+ PolymerTest.clearBody();
+ page = document.createElement('settings-privacy-page');
+ document.body.appendChild(page);
+ });
+
+ teardown(function() { page.remove(); });
+
+ test('NativeCertificateManager', function() {
+ MockInteractions.tap(page.$.manageCertificates);
+ return testBrowserProxy.whenCalled('showManageSSLCertificates');
+ });
+ });
+});
« no previous file with comments | « chrome/test/data/webui/settings/cr_settings_browsertest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698