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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 const ResourceResponse&, | 403 const ResourceResponse&, |
404 std::unique_ptr<WebDataConsumerHandle>) override { | 404 std::unique_ptr<WebDataConsumerHandle>) override { |
405 ASSERT_TRUE(false); | 405 ASSERT_TRUE(false); |
406 } | 406 } |
407 void setSerializedCachedMetadata(Resource*, const char*, size_t) override { | 407 void setSerializedCachedMetadata(Resource*, const char*, size_t) override { |
408 ASSERT_TRUE(false); | 408 ASSERT_TRUE(false); |
409 } | 409 } |
410 void dataReceived(Resource*, const char*, size_t) override { | 410 void dataReceived(Resource*, const char*, size_t) override { |
411 ASSERT_TRUE(false); | 411 ASSERT_TRUE(false); |
412 } | 412 } |
413 void redirectReceived(Resource*, | 413 bool redirectReceived(Resource*, |
414 ResourceRequest&, | 414 const ResourceRequest&, |
415 const ResourceResponse&) override { | 415 const ResourceResponse&) override { |
416 ASSERT_TRUE(false); | 416 ADD_FAILURE(); |
| 417 return true; |
417 } | 418 } |
418 void dataDownloaded(Resource*, int) override { ASSERT_TRUE(false); } | 419 void dataDownloaded(Resource*, int) override { ASSERT_TRUE(false); } |
419 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) override { | 420 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) override { |
420 ASSERT_TRUE(false); | 421 ASSERT_TRUE(false); |
421 } | 422 } |
422 | 423 |
423 DEFINE_INLINE_TRACE() { RawResourceClient::trace(visitor); } | 424 DEFINE_INLINE_TRACE() { RawResourceClient::trace(visitor); } |
424 | 425 |
425 String debugName() const override { return "ServeRequestsOnCompleteClient"; } | 426 String debugName() const override { return "ServeRequestsOnCompleteClient"; } |
426 }; | 427 }; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 url, WebURLResponse(), ""); | 746 url, WebURLResponse(), ""); |
746 Resource* newResource = fetcher->requestResource( | 747 Resource* newResource = fetcher->requestResource( |
747 fetchRequest, TestResourceFactory(Resource::Raw)); | 748 fetchRequest, TestResourceFactory(Resource::Raw)); |
748 fetcher->stopFetching(); | 749 fetcher->stopFetching(); |
749 Platform::current()->getURLLoaderMockFactory()->unregisterURL(url); | 750 Platform::current()->getURLLoaderMockFactory()->unregisterURL(url); |
750 | 751 |
751 EXPECT_NE(resource, newResource); | 752 EXPECT_NE(resource, newResource); |
752 } | 753 } |
753 | 754 |
754 } // namespace blink | 755 } // namespace blink |
OLD | NEW |