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_gcd/shell_gcd_api.h" |
| 6 |
| 7 #include <string> |
| 8 |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/values.h" |
| 11 #include "extensions/browser/api_unittest.h" |
| 12 |
| 13 namespace extensions { |
| 14 |
| 15 using ShellGcdApiTest = ApiUnitTest; |
| 16 |
| 17 TEST_F(ShellGcdApiTest, GetBootstrapStatus) { |
| 18 // Function succeeds and returns a result (for its callback). |
| 19 scoped_ptr<base::Value> result = |
| 20 RunFunctionAndReturnValue(new ShellGcdGetSetupStatusFunction, "[{}]"); |
| 21 ASSERT_TRUE(result.get()); |
| 22 std::string value; |
| 23 result->GetAsString(&value); |
| 24 EXPECT_EQ("completed", value); |
| 25 } |
| 26 |
| 27 } // namespace extensions |
OLD | NEW |