Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp

Issue 2559703002: Loading: split MockResourceClients into multiple files type by type (Closed)
Patch Set: [rebase to trunk] Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "core/fetch/ResourceFetcher.h" 31 #include "core/fetch/ResourceFetcher.h"
32 32
33 #include "core/fetch/FetchInitiatorInfo.h" 33 #include "core/fetch/FetchInitiatorInfo.h"
34 #include "core/fetch/FetchInitiatorTypeNames.h" 34 #include "core/fetch/FetchInitiatorTypeNames.h"
35 #include "core/fetch/FetchRequest.h" 35 #include "core/fetch/FetchRequest.h"
36 #include "core/fetch/ImageResource.h" 36 #include "core/fetch/ImageResource.h"
37 #include "core/fetch/MemoryCache.h" 37 #include "core/fetch/MemoryCache.h"
38 #include "core/fetch/MockFetchContext.h" 38 #include "core/fetch/MockFetchContext.h"
39 #include "core/fetch/MockResourceClients.h" 39 #include "core/fetch/MockResourceClient.h"
40 #include "core/fetch/RawResource.h" 40 #include "core/fetch/RawResource.h"
41 #include "core/fetch/ResourceLoader.h" 41 #include "core/fetch/ResourceLoader.h"
42 #include "platform/WebTaskRunner.h" 42 #include "platform/WebTaskRunner.h"
43 #include "platform/exported/WrappedResourceResponse.h" 43 #include "platform/exported/WrappedResourceResponse.h"
44 #include "platform/heap/Handle.h" 44 #include "platform/heap/Handle.h"
45 #include "platform/heap/HeapAllocator.h" 45 #include "platform/heap/HeapAllocator.h"
46 #include "platform/heap/Member.h" 46 #include "platform/heap/Member.h"
47 #include "platform/network/ResourceRequest.h" 47 #include "platform/network/ResourceRequest.h"
48 #include "platform/network/ResourceTimingInfo.h" 48 #include "platform/network/ResourceTimingInfo.h"
49 #include "platform/scheduler/test/fake_web_task_runner.h" 49 #include "platform/scheduler/test/fake_web_task_runner.h"
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 FetchRequest fetchRequest2 = FetchRequest(url, FetchInitiatorInfo()); 676 FetchRequest fetchRequest2 = FetchRequest(url, FetchInitiatorInfo());
677 Resource* newResource2 = ImageResource::fetch(fetchRequest2, fetcher2); 677 Resource* newResource2 = ImageResource::fetch(fetchRequest2, fetcher2);
678 Persistent<MockResourceClient> client2 = new MockResourceClient(newResource2); 678 Persistent<MockResourceClient> client2 = new MockResourceClient(newResource2);
679 EXPECT_EQ(resource, newResource2); 679 EXPECT_EQ(resource, newResource2);
680 EXPECT_FALSE(fetcher2->isFetching()); 680 EXPECT_FALSE(fetcher2->isFetching());
681 Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests(); 681 Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
682 Platform::current()->getURLLoaderMockFactory()->unregisterURL(url); 682 Platform::current()->getURLLoaderMockFactory()->unregisterURL(url);
683 } 683 }
684 684
685 } // namespace blink 685 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698