diff options
author | joedow <joedow@chromium.org> | 2015-07-01 18:39:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-02 01:39:48 +0000 |
commit | 751a18f30665e8cc19bc5abcd304e550f99fde48 (patch) | |
tree | eac849d5bc7dfa4b0149ba995a0367cf8e86e249 /remoting/test/remote_host_info_fetcher.h | |
parent | b8827395a72e786259c24806fcc0f5827e2a88c5 (diff) | |
download | chromium_src-751a18f30665e8cc19bc5abcd304e550f99fde48.zip chromium_src-751a18f30665e8cc19bc5abcd304e550f99fde48.tar.gz chromium_src-751a18f30665e8cc19bc5abcd304e550f99fde48.tar.bz2 |
Adding the ability to release hosts after testing to the app remoting test driver.
This change introduces a new class which will wrap calls to the
ReportIssue API. This request will be used to tell the service when we
are done with the remote hosts we used for testing so that they can be
cleaned up and the test will receive a fresh instance the next time it
is launched. I've also moved the logic to create the service urls out
into a separate class which can be used by framework and unit test
code.
Also updates the behavior for 'show-host-availability' so that it can be
used when running tests for debugging info purposes.
Also cleans up some minor cpplint errors.
BUG=
Review URL: https://codereview.chromium.org/1219063002
Cr-Commit-Position: refs/heads/master@{#337155}
Diffstat (limited to 'remoting/test/remote_host_info_fetcher.h')
-rw-r--r-- | remoting/test/remote_host_info_fetcher.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/remoting/test/remote_host_info_fetcher.h b/remoting/test/remote_host_info_fetcher.h index d3af340..984e375 100644 --- a/remoting/test/remote_host_info_fetcher.h +++ b/remoting/test/remote_host_info_fetcher.h @@ -11,6 +11,7 @@ #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "net/url_request/url_fetcher_delegate.h" +#include "remoting/test/app_remoting_service_urls.h" #include "remoting/test/remote_host_info.h" namespace net { @@ -23,28 +24,6 @@ class URLRequestContextGetter; namespace remoting { namespace test { -// Used by the RemoteHostInfoFetcher to make HTTP requests and also by the -// unittests for this class to set fake response data for these URLs. -const char kDevServiceEnvironmentUrlFormat[] = - "https://www-googleapis-test.sandbox.google.com/appremoting/v1beta1_dev/" - "applications/%s/run"; -const char kTestServiceEnvironmentUrlFormat[] = - "https://www-googleapis-test.sandbox.google.com/appremoting/v1beta1/" - "applications/%s/run"; -const char kStagingServiceEnvironmentUrlFormat[] = - "https://www-googleapis-test.sandbox.google.com/appremoting/" - "v1beta1_staging/applications/%s/run"; - -// Specifies the service API to call for app remoting host information. -// Note: When adding new environments, add them before kUnknownEnvironment as -// the last entry is used for bounds checking. -enum ServiceEnvironment { - kDeveloperEnvironment, - kTestingEnvironment, - kStagingEnvironment, - kUnknownEnvironment -}; - // Supplied by the client for each remote host info request and returns a valid, // initialized RemoteHostInfo object on success. typedef base::Callback<void(const RemoteHostInfo& remote_host_info)> |