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

Unified Diff: chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_apitest.cc

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to OO-style API with Token object. Created 6 years, 8 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: chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_apitest.cc
diff --git a/chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_apitest.cc b/chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_apitest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f0dd56fae50f8e802aa8713d9bb0e374e8e658db
--- /dev/null
+++ b/chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_apitest.cc
@@ -0,0 +1,28 @@
+// 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.
+
+#include "chrome/browser/extensions/extension_apitest.h"
+
+#include "crypto/nss_util.h"
+
+namespace {
+
+class EnterpriseCertificateTest : public ExtensionApiTest {
+ public:
+ EnterpriseCertificateTest() : test_nssdb_(true) {
+ }
+
+ private:
+ crypto::ScopedTestNSSDB test_nssdb_;
+};
+
+} // namespace
+
+IN_PROC_BROWSER_TEST_F(EnterpriseCertificateTest, ImportClientCertificate) {
+ // The test creates a tab and checks that the URL of the new tab
+ // is that of the new tab page. Make sure the pref that controls
+ // this is set.
+ ASSERT_TRUE(RunExtensionSubtest("enterprise_certificates", "import.html"))
+ << message_;
+}

Powered by Google App Engine
This is Rietveld 408576698