| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "WebView.h" | 37 #include "WebView.h" |
| 38 #include "public/platform/Platform.h" | 38 #include "public/platform/Platform.h" |
| 39 #include "public/platform/WebString.h" | 39 #include "public/platform/WebString.h" |
| 40 #include "public/platform/WebThread.h" | 40 #include "public/platform/WebThread.h" |
| 41 #include "public/platform/WebURL.h" | 41 #include "public/platform/WebURL.h" |
| 42 #include "public/platform/WebURLLoader.h" | 42 #include "public/platform/WebURLLoader.h" |
| 43 #include "public/platform/WebURLLoaderClient.h" | 43 #include "public/platform/WebURLLoaderClient.h" |
| 44 #include "public/platform/WebURLRequest.h" | 44 #include "public/platform/WebURLRequest.h" |
| 45 #include "public/platform/WebURLResponse.h" | 45 #include "public/platform/WebURLResponse.h" |
| 46 #include "public/platform/WebUnitTestSupport.h" | 46 #include "public/platform/WebUnitTestSupport.h" |
| 47 #include "wtf/text/CString.h" |
| 47 #include "wtf/text/WTFString.h" | 48 #include "wtf/text/WTFString.h" |
| 48 | 49 |
| 49 #include <gtest/gtest.h> | 50 #include <gtest/gtest.h> |
| 50 | 51 |
| 51 using namespace blink; | 52 using namespace blink; |
| 52 using blink::URLTestHelpers::toKURL; | 53 using blink::URLTestHelpers::toKURL; |
| 53 | 54 |
| 54 namespace { | 55 namespace { |
| 55 | 56 |
| 56 class TestWebFrameClient : public WebFrameClient { | 57 class TestWebFrameClient : public WebFrameClient { |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 m_expectedLoader->loadAsynchronously(request, this); | 626 m_expectedLoader->loadAsynchronously(request, this); |
| 626 serveRequests(); | 627 serveRequests(); |
| 627 EXPECT_TRUE(m_didReceiveResponse); | 628 EXPECT_TRUE(m_didReceiveResponse); |
| 628 EXPECT_TRUE(m_didReceiveData); | 629 EXPECT_TRUE(m_didReceiveData); |
| 629 EXPECT_TRUE(m_didFinishLoading); | 630 EXPECT_TRUE(m_didFinishLoading); |
| 630 | 631 |
| 631 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty()); | 632 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty()); |
| 632 } | 633 } |
| 633 | 634 |
| 634 } | 635 } |
| OLD | NEW |