Index: extensions/browser/api/shell_private/shell_private_api_unittest.cc |
diff --git a/extensions/browser/api/shell_private/shell_private_api_unittest.cc b/extensions/browser/api/shell_private/shell_private_api_unittest.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bbfb8f944e64f5d0e192753b85b58a48d2f35ba3 |
--- /dev/null |
+++ b/extensions/browser/api/shell_private/shell_private_api_unittest.cc |
@@ -0,0 +1,25 @@ |
+// 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 "extensions/browser/api/shell_private/shell_private_api.h" |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "base/values.h" |
+#include "extensions/browser/api_unittest.h" |
+ |
+namespace extensions { |
+ |
+typedef ApiUnitTest ShellPrivateApiTest; |
+ |
+// Verifies that the printHello function exists and can be called without |
+// crashing. |
+TEST_F(ShellPrivateApiTest, PrintHello) { |
+ scoped_ptr<base::Value> result = |
+ RunFunctionAndReturnValue(new ShellPrivatePrintHelloFunction, "[]"); |
+ |
+ // Function returns nothing. |
+ EXPECT_FALSE(result.get()); |
+} |
+ |
+} // namespace extensions |