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_gcd/shell_gcd_api.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/values.h"
11 #include "extensions/browser/api_unittest.h"
13 namespace extensions {
15 using ShellGcdApiTest = ApiUnitTest;
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());
23 result->GetAsString(&value);
24 EXPECT_EQ("completed", value);
27 } // namespace extensions