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

Side by Side Diff: third_party/WebKit/Source/core/fetch/MockResourceClients.h

Issue 2410753002: Remove ResourceTest.ProhibitAddRemoveClientInScope unit test (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ResourceTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26 matching lines...) Expand all
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class MockResourceClient : public GarbageCollectedFinalized<MockResourceClient>, 41 class MockResourceClient : public GarbageCollectedFinalized<MockResourceClient>,
42 public ResourceClient { 42 public ResourceClient {
43 USING_PRE_FINALIZER(MockResourceClient, dispose); 43 USING_PRE_FINALIZER(MockResourceClient, dispose);
44 USING_GARBAGE_COLLECTED_MIXIN(MockResourceClient); 44 USING_GARBAGE_COLLECTED_MIXIN(MockResourceClient);
45 45
46 public: 46 public:
47 MockResourceClient() {}
48 explicit MockResourceClient(Resource*); 47 explicit MockResourceClient(Resource*);
49 ~MockResourceClient() override; 48 ~MockResourceClient() override;
50 49
51 void notifyFinished(Resource*) override; 50 void notifyFinished(Resource*) override;
52 String debugName() const override { return "MockResourceClient"; } 51 String debugName() const override { return "MockResourceClient"; }
53 virtual bool notifyFinishedCalled() const { return m_notifyFinishedCalled; } 52 virtual bool notifyFinishedCalled() const { return m_notifyFinishedCalled; }
54 53
55 virtual void removeAsClient(); 54 virtual void removeAsClient();
56 virtual void dispose(); 55 virtual void dispose();
57 56
(...skipping 23 matching lines...) Expand all
81 int imageChangedCount() const { return m_imageChangedCount; } 80 int imageChangedCount() const { return m_imageChangedCount; }
82 81
83 private: 82 private:
84 int m_imageChangedCount; 83 int m_imageChangedCount;
85 int m_imageNotifyFinishedCount; 84 int m_imageNotifyFinishedCount;
86 }; 85 };
87 86
88 } // namespace blink 87 } // namespace blink
89 88
90 #endif // MockResourceClients_h 89 #endif // MockResourceClients_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ResourceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698