OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "base/macros.h" |
12 #include "net/test/embedded_test_server/embedded_test_server.h" | 13 #include "net/test/embedded_test_server/embedded_test_server.h" |
13 #include "net/test/embedded_test_server/http_request.h" | 14 #include "net/test/embedded_test_server/http_request.h" |
14 #include "net/test/embedded_test_server/http_response.h" | 15 #include "net/test/embedded_test_server/http_response.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
16 | 17 |
17 namespace chromeos { | 18 namespace chromeos { |
18 | 19 |
19 // Simple fake CWS update check request handler that returns a fixed update | 20 // Simple fake CWS update check request handler that returns a fixed update |
20 // check response. The response is created either from SetUpdateCrx() or | 21 // check response. The response is created either from SetUpdateCrx() or |
21 // SetNoUpdate(). | 22 // SetNoUpdate(). |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Map keyed by app_id to app_update_content. | 67 // Map keyed by app_id to app_update_content. |
67 std::map<std::string, std::string> id_to_update_check_content_map_; | 68 std::map<std::string, std::string> id_to_update_check_content_map_; |
68 int update_check_count_; | 69 int update_check_count_; |
69 | 70 |
70 DISALLOW_COPY_AND_ASSIGN(FakeCWS); | 71 DISALLOW_COPY_AND_ASSIGN(FakeCWS); |
71 }; | 72 }; |
72 | 73 |
73 } // namespace chromeos | 74 } // namespace chromeos |
74 | 75 |
75 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ | 76 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ |
OLD | NEW |