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

Side by Side Diff: extensions/browser/api/shell_private/shell_private_api_unittest.cc

Issue 662473006: Revert "app_shell: Add experimental shellPrivate extension API" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: 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 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/browser/api/shell_private/shell_private_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 ShellPrivateApiTest;
14
15 // Verifies that the printHello function exists and can be called without
16 // crashing.
17 TEST_F(ShellPrivateApiTest, PrintHello) {
18 scoped_ptr<base::Value> result =
19 RunFunctionAndReturnValue(new ShellPrivatePrintHelloFunction, "[]");
20
21 // Function returns nothing.
22 EXPECT_FALSE(result.get());
23 }
24
25 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/shell_private/shell_private_api.cc ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698