Index: webkit/glue/resource_fetcher_unittest.cc |
diff --git a/webkit/glue/resource_fetcher_unittest.cc b/webkit/glue/resource_fetcher_unittest.cc |
index 2888a94817ddb71513edaf764bd697ee3a065732..9ef0fc61df6da0173c0f174bce5ad68349348fc9 100644 |
--- a/webkit/glue/resource_fetcher_unittest.cc |
+++ b/webkit/glue/resource_fetcher_unittest.cc |
@@ -40,6 +40,8 @@ class FetcherDelegate { |
StartTimer(); |
} |
+ virtual ~FetcherDelegate() {} |
+ |
ResourceFetcher::Callback* NewCallback() { |
return ::NewCallback(this, &FetcherDelegate::OnURLFetchComplete); |
} |
@@ -173,12 +175,14 @@ TEST_F(ResourceFetcherTests, ResourceFetcherTimeout) { |
class EvilFetcherDelegate : public FetcherDelegate { |
public: |
+ virtual ~EvilFetcherDelegate() {} |
+ |
void SetFetcher(ResourceFetcher* fetcher) { |
fetcher_.reset(fetcher); |
} |
- void OnURLFetchComplete(const WebURLResponse& response, |
- const std::string& data) { |
+ virtual void OnURLFetchComplete(const WebURLResponse& response, |
+ const std::string& data) { |
// Destroy the ResourceFetcher here. We are testing that upon returning |
// to the ResourceFetcher that it does not crash. |
fetcher_.reset(); |