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

Side by Side Diff: services/shell/tests/shutdown/shutdown_unittest.cc

Issue 2123363002: ShellTest -> ServiceTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « services/shell/tests/shutdown/BUILD.gn ('k') | services/ui/clipboard/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/run_loop.h" 5 #include "base/run_loop.h"
6 #include "mojo/public/cpp/bindings/binding_set.h" 6 #include "mojo/public/cpp/bindings/binding_set.h"
7 #include "services/shell/public/cpp/shell_test.h" 7 #include "services/shell/public/cpp/service_test.h"
8 #include "services/shell/tests/shutdown/shutdown_unittest.mojom.h" 8 #include "services/shell/tests/shutdown/shutdown_unittest.mojom.h"
9 9
10 namespace shell { 10 namespace shell {
11 namespace { 11 namespace {
12 12
13 class ShutdownTest : public test::ShellTest { 13 class ShutdownTest : public test::ServiceTest {
14 public: 14 public:
15 ShutdownTest() : test::ShellTest("mojo:shutdown_unittest") {} 15 ShutdownTest() : test::ServiceTest("mojo:shutdown_unittest") {}
16 ~ShutdownTest() override {} 16 ~ShutdownTest() override {}
17 17
18 private: 18 private:
19 DISALLOW_COPY_AND_ASSIGN(ShutdownTest); 19 DISALLOW_COPY_AND_ASSIGN(ShutdownTest);
20 }; 20 };
21 21
22 TEST_F(ShutdownTest, ConnectRace) { 22 TEST_F(ShutdownTest, ConnectRace) {
23 // This test exercises a number of potential shutdown races that can lead to 23 // This test exercises a number of potential shutdown races that can lead to
24 // client deadlock if any of various parts of the EDK or shell service are not 24 // client deadlock if any of various parts of the EDK or shell service are not
25 // working as intended. 25 // working as intended.
(...skipping 10 matching lines...) Expand all
36 // then block waiting for the interface pipe to signal something. If anything 36 // then block waiting for the interface pipe to signal something. If anything
37 // goes wrong, its pipe won't signal and the client process will hang without 37 // goes wrong, its pipe won't signal and the client process will hang without
38 // responding to this request. 38 // responding to this request.
39 base::RunLoop loop; 39 base::RunLoop loop;
40 control->ConnectAndWait(loop.QuitClosure()); 40 control->ConnectAndWait(loop.QuitClosure());
41 loop.Run(); 41 loop.Run();
42 } 42 }
43 43
44 } // namespace 44 } // namespace
45 } // namespace shell 45 } // namespace shell
OLDNEW
« no previous file with comments | « services/shell/tests/shutdown/BUILD.gn ('k') | services/ui/clipboard/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698