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

Side by Side Diff: runtime/bin/vmservice_impl.h

Issue 22607005: Remove race(s) in vmservice tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice/vmservice.dart ('k') | runtime/bin/vmservice_impl.cc » ('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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_VMSERVICE_IMPL_H_ 5 #ifndef BIN_VMSERVICE_IMPL_H_
6 #define BIN_VMSERVICE_IMPL_H_ 6 #define BIN_VMSERVICE_IMPL_H_
7 7
8 #include "bin/vmservice.h" 8 #include "bin/vmservice.h"
9 #include "platform/thread.h" 9 #include "platform/thread.h"
10 10
11 11
12 namespace dart { 12 namespace dart {
13 namespace bin { 13 namespace bin {
14 14
15 class VmService { 15 class VmService {
16 public: 16 public:
17 // Returns false if service could not be started. 17 // Returns false if service could not be started.
18 static bool Start(intptr_t server_port); 18 static bool Start(intptr_t server_port);
19 // Error message if startup failed. 19 // Error message if startup failed.
20 static const char* GetErrorMessage(); 20 static const char* GetErrorMessage();
21 21
22 static Dart_Port port(); 22 static Dart_Port port();
23 23
24 static bool IsRunning(); 24 static bool IsRunning();
25 25
26 static bool SendIsolateStartupMessage(Dart_Port port); 26 static bool SendIsolateStartupMessage(Dart_Port port, Dart_Handle name);
27 static bool SendIsolateShutdownMessage(Dart_Port port); 27 static bool SendIsolateShutdownMessage(Dart_Port port);
28 28
29 static void VmServiceShutdownCallback(void* callback_data); 29 static void VmServiceShutdownCallback(void* callback_data);
30 30
31 private: 31 private:
32 static bool _Start(intptr_t server_port); 32 static bool _Start(intptr_t server_port);
33 static void _Stop(); 33 static void _Stop();
34 static Dart_Handle GetSource(const char* name); 34 static Dart_Handle GetSource(const char* name);
35 static Dart_Handle LoadScript(const char* name); 35 static Dart_Handle LoadScript(const char* name);
36 static Dart_Handle LoadSources(Dart_Handle library, const char** names); 36 static Dart_Handle LoadSources(Dart_Handle library, const char** names);
(...skipping 14 matching lines...) Expand all
51 51
52 DISALLOW_ALLOCATION(); 52 DISALLOW_ALLOCATION();
53 DISALLOW_IMPLICIT_CONSTRUCTORS(VmService); 53 DISALLOW_IMPLICIT_CONSTRUCTORS(VmService);
54 }; 54 };
55 55
56 56
57 } // namespace bin 57 } // namespace bin
58 } // namespace dart 58 } // namespace dart
59 59
60 #endif // BIN_VMSERVICE_IMPL_H_ 60 #endif // BIN_VMSERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/vmservice.dart ('k') | runtime/bin/vmservice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698