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

Side by Side Diff: tools/battor_agent/battor_error.h

Issue 2563033002: Make the BattOr agent retry start tracing when we fail to read an ack (Closed)
Patch Set: Created 4 years 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 | « tools/battor_agent/battor_agent_unittest.cc ('k') | tools/battor_agent/battor_error.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ 5 #ifndef TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_
6 #define TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ 6 #define TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace battor { 10 namespace battor {
11 11
12 // A BattOrError is an error that occurs when communicating with a BattOr. 12 // A BattOrError is an error that occurs when communicating with a BattOr.
13 enum BattOrError { 13 enum BattOrError {
14 BATTOR_ERROR_NONE, 14 BATTOR_ERROR_NONE,
15 BATTOR_ERROR_CONNECTION_FAILED, 15 BATTOR_ERROR_CONNECTION_FAILED,
16 BATTOR_ERROR_TIMEOUT, 16 BATTOR_ERROR_TIMEOUT,
17 BATTOR_ERROR_SEND_ERROR, 17 BATTOR_ERROR_SEND_ERROR,
18 BATTOR_ERROR_RECEIVE_ERROR, 18 BATTOR_ERROR_RECEIVE_ERROR,
19 BATTOR_ERROR_UNEXPECTED_MESSAGE, 19 BATTOR_ERROR_UNEXPECTED_MESSAGE,
20 BATTOR_ERROR_TOO_MANY_INIT_RETRIES, 20 BATTOR_ERROR_TOO_MANY_INIT_RETRIES,
21 BATTOR_ERROR_TOO_MANY_START_TRACING_RETRIES,
21 }; 22 };
22 23
23 std::string BattOrErrorToString(BattOrError error); 24 std::string BattOrErrorToString(BattOrError error);
24 25
25 } 26 }
26 27
27 #endif // TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ 28 #endif // TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_
OLDNEW
« no previous file with comments | « tools/battor_agent/battor_agent_unittest.cc ('k') | tools/battor_agent/battor_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698