| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2010 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  |    7  | 
|    8 #include <windows.h> |    8 #include <windows.h> | 
|    9 #include <string> |    9 #include <string> | 
|   10  |   10  | 
|   11 #include "base/string_util.h" |   11 #include "base/string_util.h" | 
 |   12 #include "base/utf_string_conversions.h" | 
|   12 #include "chrome_frame/test/http_server.h" |   13 #include "chrome_frame/test/http_server.h" | 
|   13 #include "chrome_frame/test/test_server.h" |   14 #include "chrome_frame/test/test_server.h" | 
|   14 #include "testing/gtest/include/gtest/gtest.h" |   15 #include "testing/gtest/include/gtest/gtest.h" | 
|   15 #include "testing/gmock/include/gmock/gmock.h" |   16 #include "testing/gmock/include/gmock/gmock.h" | 
|   16  |   17  | 
|   17 // Include without path to make GYP build see it. |   18 // Include without path to make GYP build see it. | 
|   18 #include "chrome_tab.h"  // NOLINT |   19 #include "chrome_tab.h"  // NOLINT | 
|   19  |   20  | 
|   20 // Class that: |   21 // Class that: | 
|   21 // 1) Starts the local webserver, |   22 // 1) Starts the local webserver, | 
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  294   // Send a response on the given connection appropriate for |resource_uri|. |  295   // Send a response on the given connection appropriate for |resource_uri|. | 
|  295   // If the file referred to by |path| exists, send the file data, otherwise |  296   // If the file referred to by |path| exists, send the file data, otherwise | 
|  296   // send 404. Modify the file data according to the given invocation method. |  297   // send 404. Modify the file data according to the given invocation method. | 
|  297   void SendResponseHelper(test_server::ConfigurableConnection* connection, |  298   void SendResponseHelper(test_server::ConfigurableConnection* connection, | 
|  298                           const std::wstring& resource_uri, |  299                           const std::wstring& resource_uri, | 
|  299                           CFInvocation invocation, |  300                           CFInvocation invocation, | 
|  300                           bool add_no_cache_header); |  301                           bool add_no_cache_header); | 
|  301 }; |  302 }; | 
|  302  |  303  | 
|  303 #endif  // CHROME_FRAME_TEST_TEST_WITH_WEB_SERVER_H_ |  304 #endif  // CHROME_FRAME_TEST_TEST_WITH_WEB_SERVER_H_ | 
| OLD | NEW |