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

Side by Side Diff: remoting/test/app_remoting_service_urls.h

Issue 1357973002: Removing Test and Staging environments from App Remoting Test Driver tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing unittest Created 5 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
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 REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ 5 #ifndef REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_
6 #define REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ 6 #define REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace remoting { 10 namespace remoting {
11 namespace test { 11 namespace test {
12 12
13 // Specifies the service API to call for app remoting host information. 13 // Specifies the service API to call for app remoting host information.
14 // Note: When adding new environments, add them before kUnknownEnvironment as 14 // Note: When adding new environments, add them before kUnknownEnvironment as
15 // the last entry is used for bounds checking. 15 // the last entry is used for bounds checking.
16 enum ServiceEnvironment { 16 enum ServiceEnvironment {
17 kDeveloperEnvironment, 17 kDeveloperEnvironment,
18 kTestingEnvironment,
19 kStagingEnvironment,
20 kUnknownEnvironment 18 kUnknownEnvironment
21 }; 19 };
22 20
23 // Used to determine if the service_environment is one of the supported values. 21 // Used to determine if the service_environment is one of the supported values.
24 bool IsSupportedServiceEnvironment(ServiceEnvironment service_environment); 22 bool IsSupportedServiceEnvironment(ServiceEnvironment service_environment);
25 23
26 // Generates and returns a URL for the specified application and environment to 24 // Generates and returns a URL for the specified application and environment to
27 // request remote host details. 25 // request remote host details.
28 std::string GetRunApplicationUrl(const std::string& extension_id, 26 std::string GetRunApplicationUrl(const std::string& extension_id,
29 ServiceEnvironment service_environment); 27 ServiceEnvironment service_environment);
30 28
31 // Generates and returns a URL for the specified application and environment to 29 // Generates and returns a URL for the specified application and environment to
32 // report an issue. 30 // report an issue.
33 std::string GetReportIssueUrl(const std::string& extension_id, 31 std::string GetReportIssueUrl(const std::string& extension_id,
34 const std::string& host_id, 32 const std::string& host_id,
35 ServiceEnvironment service_environment); 33 ServiceEnvironment service_environment);
36 34
37 } // namespace test 35 } // namespace test
38 } // namespace remoting 36 } // namespace remoting
39 37
40 #endif // REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ 38 #endif // REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_
OLDNEW
« no previous file with comments | « remoting/test/app_remoting_report_issue_request_unittest.cc ('k') | remoting/test/app_remoting_service_urls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698