OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "extensions/shell/browser/api/shell_identity/shell_identity_api.h" |
| 6 |
| 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/values.h" |
| 9 #include "extensions/browser/api_unittest.h" |
| 10 |
| 11 namespace extensions { |
| 12 |
| 13 typedef ApiUnitTest ShellIdentityApiTest; |
| 14 |
| 15 // Verifies that the getAuthToken function exists and can be called without |
| 16 // crashing. |
| 17 TEST_F(ShellIdentityApiTest, GetAuthTokenBasics) { |
| 18 scoped_ptr<base::Value> result = |
| 19 RunFunctionAndReturnValue(new ShellIdentityGetAuthTokenFunction, "[]"); |
| 20 |
| 21 // Function returns nothing. |
| 22 EXPECT_FALSE(result.get()); |
| 23 } |
| 24 |
| 25 } // namespace extensions |
OLD | NEW |