Chromium Code Reviews| Index: chrome/browser/chromeos/app_mode/fake_cws.h |
| diff --git a/chrome/browser/chromeos/app_mode/fake_cws.h b/chrome/browser/chromeos/app_mode/fake_cws.h |
| index c6e3d2fe38979a3bad4f5d798abd7afa19c4c6f1..f330b4ac297cfe08a287e1778d4b76caf5488952 100644 |
| --- a/chrome/browser/chromeos/app_mode/fake_cws.h |
| +++ b/chrome/browser/chromeos/app_mode/fake_cws.h |
| @@ -14,24 +14,26 @@ namespace chromeos { |
| class FakeCWS { |
| public: |
| - FakeCWS() {} |
| - virtual ~FakeCWS() {} |
| + FakeCWS(); |
| + ~FakeCWS(); |
| void Init(net::test_server::EmbeddedTestServer* embedded_test_server); |
| + void InitAsPrivateStore( |
| + net::test_server::EmbeddedTestServer* embedded_test_server, |
| + const std::string& update_check_end_point); |
| + |
| // Sets up the kiosk app update response. |
| void SetUpdateCrx(const std::string& app_id, |
| const std::string& crx_file, |
| const std::string& version); |
| void SetNoUpdate(const std::string& app_id); |
| + // Returns the current |update_check_count_| and resets it. |
| + int GetUpdateCheckCountAndReset(); |
| + |
| private: |
| - void SetupWebStore(const GURL& test_server_url); |
| - void SetupWebStoreGalleryUrl(); |
| - void SetupCrxDownloadAndUpdateUrls( |
| - net::test_server::EmbeddedTestServer* embedded_test_server); |
| - void SetupCrxDownloadUrl(); |
| - void SetupCrxUpdateUrl( |
| - net::test_server::EmbeddedTestServer* embedded_test_server); |
| + void SetupWebStoreURL(const GURL& test_server_url); |
| + void OverrideGallaryCommandlineSwitches(); |
|
Mattias Nissler (ping if slow)
2014/10/24 09:10:37
*Gallery
xiyuan
2014/10/25 17:45:26
Done.
|
| // Sets up |update_check_content_| used in update request response later by |
|
Mattias Nissler (ping if slow)
2014/10/24 09:10:37
nit: Blank line before comment
xiyuan
2014/10/25 17:45:26
Done.
|
| // kiosk app update server request handler |HandleRequest|. |
| void SetUpdateCheckContent(const std::string& update_check_file, |
| @@ -46,7 +48,13 @@ class FakeCWS { |
| const net::test_server::HttpRequest& request); |
| GURL web_store_url_; |
| + |
| + std::string has_update_template_; |
| + std::string no_update_template_; |
| + std::string update_check_end_point_; |
| + |
| std::string update_check_content_; |
| + int update_check_count_; |
| DISALLOW_COPY_AND_ASSIGN(FakeCWS); |
| }; |