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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 { | 360 { |
361 Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequest
s(); | 361 Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequest
s(); |
362 } | 362 } |
363 | 363 |
364 // No callbacks should be received except for the notifyFinished() | 364 // No callbacks should be received except for the notifyFinished() |
365 // triggered by ResourceLoader::cancel(). | 365 // triggered by ResourceLoader::cancel(). |
366 void dataSent(Resource*, unsigned long long, unsigned long long) override {
ASSERT_TRUE(false); } | 366 void dataSent(Resource*, unsigned long long, unsigned long long) override {
ASSERT_TRUE(false); } |
367 void responseReceived(Resource*, const ResourceResponse&, std::unique_ptr<We
bDataConsumerHandle>) override { ASSERT_TRUE(false); } | 367 void responseReceived(Resource*, const ResourceResponse&, std::unique_ptr<We
bDataConsumerHandle>) override { ASSERT_TRUE(false); } |
368 void setSerializedCachedMetadata(Resource*, const char*, size_t) override {
ASSERT_TRUE(false); } | 368 void setSerializedCachedMetadata(Resource*, const char*, size_t) override {
ASSERT_TRUE(false); } |
369 void dataReceived(Resource*, const char*, size_t) override { ASSERT_TRUE(fal
se); } | 369 void dataReceived(Resource*, const char*, size_t) override { ASSERT_TRUE(fal
se); } |
370 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&)
override { ASSERT_TRUE(false); } | 370 bool redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&)
override { ADD_FAILURE(); return true; } |
371 void dataDownloaded(Resource*, int) override { ASSERT_TRUE(false); } | 371 void dataDownloaded(Resource*, int) override { ASSERT_TRUE(false); } |
372 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) override
{ ASSERT_TRUE(false); } | 372 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) override
{ ASSERT_TRUE(false); } |
373 | 373 |
374 DEFINE_INLINE_TRACE() | 374 DEFINE_INLINE_TRACE() |
375 { | 375 { |
376 RawResourceClient::trace(visitor); | 376 RawResourceClient::trace(visitor); |
377 } | 377 } |
378 | 378 |
379 String debugName() const override { return "ServeRequestsOnCompleteClient";
} | 379 String debugName() const override { return "ServeRequestsOnCompleteClient";
} |
380 }; | 380 }; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 FetchRequest request(url, FetchInitiatorInfo()); | 510 FetchRequest request(url, FetchInitiatorInfo()); |
511 request.makeSynchronous(); | 511 request.makeSynchronous(); |
512 Resource* resource = fetcher->requestResource(request, TestResourceFactory()
); | 512 Resource* resource = fetcher->requestResource(request, TestResourceFactory()
); |
513 EXPECT_TRUE(resource->isLoaded()); | 513 EXPECT_TRUE(resource->isLoaded()); |
514 EXPECT_EQ(ResourceLoadPriorityHighest, resource->resourceRequest().priority(
)); | 514 EXPECT_EQ(ResourceLoadPriorityHighest, resource->resourceRequest().priority(
)); |
515 | 515 |
516 memoryCache()->remove(resource); | 516 memoryCache()->remove(resource); |
517 } | 517 } |
518 | 518 |
519 } // namespace blink | 519 } // namespace blink |
OLD | NEW |