1 // Copyright 2014 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.
5 #include "extensions/shell/browser/api/shell_window/shell_window_api.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "base/values.h"
9 #include "extensions/browser/api_unittest.h"
13 namespace extensions {
15 using ShellWindowApiTest = ApiUnitTest;
17 // Verifies that the show and hide functions exists and can be called without
19 TEST_F(ShellWindowApiTest, ShowHideBasics) {
20 scoped_ptr<Value> result =
21 RunFunctionAndReturnValue(new ShellWindowRequestHideFunction, "[]");
23 // Function returns nothing.
24 EXPECT_FALSE(result.get());
26 result = RunFunctionAndReturnValue(new ShellWindowRequestShowFunction, "[]");
28 // Function returns nothing.
29 EXPECT_FALSE(result.get());
31 result = RunFunctionAndReturnValue(new ShellWindowShowAppFunction, "[{}]");
33 // Function returns nothing.
34 EXPECT_FALSE(result.get());
37 } // namespace extensions