OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, 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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "platform/loader/fetch/RawResource.h" | 31 #include "platform/loader/fetch/RawResource.h" |
32 | 32 |
33 #include "platform/SharedBuffer.h" | 33 #include "platform/SharedBuffer.h" |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "platform/loader/fetch/MemoryCache.h" | 35 #include "platform/loader/fetch/MemoryCache.h" |
36 #include "platform/loader/fetch/ResourceFetcher.h" | 36 #include "platform/loader/fetch/ResourceFetcher.h" |
37 #include "platform/loader/fetch/ResourceTimingInfo.h" | 37 #include "platform/loader/fetch/ResourceTimingInfo.h" |
| 38 #include "platform/scheduler/child/web_scheduler.h" |
38 #include "platform/testing/TestingPlatformSupport.h" | 39 #include "platform/testing/TestingPlatformSupport.h" |
39 #include "platform/testing/UnitTestHelpers.h" | 40 #include "platform/testing/UnitTestHelpers.h" |
40 #include "public/platform/Platform.h" | 41 #include "public/platform/Platform.h" |
41 #include "public/platform/WebScheduler.h" | |
42 #include "public/platform/WebThread.h" | 42 #include "public/platform/WebThread.h" |
43 #include "public/platform/WebURL.h" | 43 #include "public/platform/WebURL.h" |
44 #include "public/platform/WebURLResponse.h" | 44 #include "public/platform/WebURLResponse.h" |
45 #include "testing/gmock/include/gmock/gmock.h" | 45 #include "testing/gmock/include/gmock/gmock.h" |
46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
47 | 47 |
48 namespace blink { | 48 namespace blink { |
49 | 49 |
50 using ::testing::InSequence; | 50 using ::testing::InSequence; |
51 using ::testing::_; | 51 using ::testing::_; |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 | 589 |
590 TEST_F(RawResourceTest, CanReuseDevToolsRequestIdHeader) { | 590 TEST_F(RawResourceTest, CanReuseDevToolsRequestIdHeader) { |
591 ResourceRequest request("data:text/html,"); | 591 ResourceRequest request("data:text/html,"); |
592 request.SetHTTPHeaderField(HTTPNames::X_DevTools_Request_Id, "12345"); | 592 request.SetHTTPHeaderField(HTTPNames::X_DevTools_Request_Id, "12345"); |
593 Resource* raw = RawResource::Create(request, Resource::kRaw); | 593 Resource* raw = RawResource::Create(request, Resource::kRaw); |
594 EXPECT_TRUE(raw->CanReuse(FetchParameters(ResourceRequest("data:text/html,"), | 594 EXPECT_TRUE(raw->CanReuse(FetchParameters(ResourceRequest("data:text/html,"), |
595 FetchInitiatorInfo()))); | 595 FetchInitiatorInfo()))); |
596 } | 596 } |
597 | 597 |
598 } // namespace blink | 598 } // namespace blink |
OLD | NEW |