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

Unified Diff: mojo/shell/runner/child/native_apptest.cc

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « mojo/shell/runner/child/manifest.json ('k') | mojo/shell/runner/child/native_apptest_target.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/child/native_apptest.cc
diff --git a/mojo/shell/runner/child/native_apptest.cc b/mojo/shell/runner/child/native_apptest.cc
deleted file mode 100644
index d0ab0b7db5e34bc92894d23e2491d540294c1aed..0000000000000000000000000000000000000000
--- a/mojo/shell/runner/child/native_apptest.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2015 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 "base/bind.h"
-#include "base/macros.h"
-#include "mojo/shell/public/cpp/application_test_base.h"
-#include "mojo/shell/runner/child/test_native_service.mojom.h"
-
-namespace mojo {
-namespace shell {
-namespace {
-void InvertCallback(bool* result, bool from_native) {
- *result = from_native;
-}
-} // namespace
-
-using NativeAppTest = mojo::test::ApplicationTestBase;
-
-TEST_F(NativeAppTest, Connect) {
- test::TestNativeServicePtr native_service;
- connector()->ConnectToInterface("exe:mojo_runner_child_apptest_native_target",
- &native_service);
-
- bool result = false;
- native_service->Invert(
- true, base::Bind(&InvertCallback, base::Unretained(&result)));
- native_service.WaitForIncomingResponse();
- EXPECT_FALSE(result);
-
- native_service->Invert(
- false, base::Bind(&InvertCallback, base::Unretained(&result)));
- native_service.WaitForIncomingResponse();
- EXPECT_TRUE(result);
-}
-
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/runner/child/manifest.json ('k') | mojo/shell/runner/child/native_apptest_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698