OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FRAME_TEST_TEST_WITH_WEB_SERVER_H_ | 5 #ifndef CHROME_FRAME_TEST_TEST_WITH_WEB_SERVER_H_ |
6 #define CHROME_FRAME_TEST_TEST_WITH_WEB_SERVER_H_ | 6 #define CHROME_FRAME_TEST_TEST_WITH_WEB_SERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
16 #include "chrome_frame/chrome_tab.h" | |
17 #include "chrome_frame/test/chrome_frame_test_utils.h" | 16 #include "chrome_frame/test/chrome_frame_test_utils.h" |
18 #include "chrome_frame/test/test_server.h" | 17 #include "chrome_frame/test/test_server.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
21 | 20 |
| 21 // Include without path to make GYP build see it. |
| 22 #include "chrome_tab.h" // NOLINT |
| 23 |
22 // Specifies the invocation method for CF. | 24 // Specifies the invocation method for CF. |
23 class CFInvocation { | 25 class CFInvocation { |
24 public: | 26 public: |
25 enum Type { | 27 enum Type { |
26 NONE = 0, | 28 NONE = 0, |
27 META_TAG, | 29 META_TAG, |
28 HTTP_HEADER | 30 HTTP_HEADER |
29 }; | 31 }; |
30 | 32 |
31 CFInvocation(): method_(NONE) {} | 33 CFInvocation(): method_(NONE) {} |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // Same as above except that the response does not include the no-cache header. | 323 // Same as above except that the response does not include the no-cache header. |
322 ACTION_P2(SendAllowCacheResponse, server, invocation) { | 324 ACTION_P2(SendAllowCacheResponse, server, invocation) { |
323 server->SendResponseHelper(arg0, arg1, invocation, false); | 325 server->SendResponseHelper(arg0, arg1, invocation, false); |
324 } | 326 } |
325 | 327 |
326 ACTION_P2(HandlePostedResponseHelper, server, invocation) { | 328 ACTION_P2(HandlePostedResponseHelper, server, invocation) { |
327 server->HandlePostedResponse(arg0, arg2); | 329 server->HandlePostedResponse(arg0, arg2); |
328 } | 330 } |
329 | 331 |
330 #endif // CHROME_FRAME_TEST_TEST_WITH_WEB_SERVER_H_ | 332 #endif // CHROME_FRAME_TEST_TEST_WITH_WEB_SERVER_H_ |
OLD | NEW |