Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: extensions/shell/browser/api/shell_gcd/shell_gcd_api_unittest.cc

Issue 690093002: app_shell: Initial skeleton of a GCD target device setup API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: C++ skeleton Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 ShellGcdGetBootstrapStatusFunction, "[{}]");
21 ASSERT_TRUE(result.get());
22 std::string value;
23 result->GetAsString(&value);
24 EXPECT_EQ("completed", value);
25 }
26
27 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698