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

Unified 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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: extensions/shell/browser/api/shell_gcd/shell_gcd_api_unittest.cc
diff --git a/extensions/shell/browser/api/shell_gcd/shell_gcd_api_unittest.cc b/extensions/shell/browser/api/shell_gcd/shell_gcd_api_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..66685e69d166f63bb7e289d91e63b661ca0fe53d
--- /dev/null
+++ b/extensions/shell/browser/api/shell_gcd/shell_gcd_api_unittest.cc
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/shell/browser/api/shell_gcd/shell_gcd_api.h"
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+#include "base/values.h"
+#include "extensions/browser/api_unittest.h"
+
+namespace extensions {
+
+using ShellGcdApiTest = ApiUnitTest;
+
+TEST_F(ShellGcdApiTest, GetBootstrapStatus) {
+ // Function succeeds and returns a result (for its callback).
+ scoped_ptr<base::Value> result =
+ RunFunctionAndReturnValue(new ShellGcdGetBootstrapStatusFunction, "[{}]");
+ ASSERT_TRUE(result.get());
+ std::string value;
+ result->GetAsString(&value);
+ EXPECT_EQ("completed", value);
+}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698