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

Unified Diff: components/webdata/common/web_data_service_test_util.h

Issue 777863002: Introduce new component webdata_services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile as static_library instead of component Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/webdata/DEPS ('k') | components/webdata/common/web_data_service_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webdata/common/web_data_service_test_util.h
diff --git a/components/webdata/common/web_data_service_test_util.h b/components/webdata/common/web_data_service_test_util.h
deleted file mode 100644
index 736835616c055c29f30ff28538d0fd0d07364a40..0000000000000000000000000000000000000000
--- a/components/webdata/common/web_data_service_test_util.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_TEST_UTIL_H__
-#define COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_TEST_UTIL_H__
-
-#include "base/basictypes.h"
-#include "base/message_loop/message_loop.h"
-#include "chrome/browser/webdata/web_data_service_factory.h"
-#include "components/signin/core/browser/webdata/token_web_data.h"
-
-// Base class for mocks of WebDataService, that does nothing in
-// Shutdown().
-class MockWebDataServiceWrapperBase : public WebDataServiceWrapper {
- public:
- MockWebDataServiceWrapperBase();
- ~MockWebDataServiceWrapperBase() override;
-
- void Shutdown() override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapperBase);
-};
-
-// Pass your fake WebDataService in the constructor and this will
-// serve it up via GetWebData().
-class MockWebDataServiceWrapper : public MockWebDataServiceWrapperBase {
- public:
- MockWebDataServiceWrapper(
- scoped_refptr<autofill::AutofillWebDataService> fake_autofill,
- scoped_refptr<TokenWebData> fake_token);
-
- ~MockWebDataServiceWrapper() override;
-
- scoped_refptr<autofill::AutofillWebDataService> GetAutofillWebData() override;
-
- scoped_refptr<TokenWebData> GetTokenWebData() override;
-
- protected:
- scoped_refptr<autofill::AutofillWebDataService> fake_autofill_web_data_;
- scoped_refptr<TokenWebData> fake_token_web_data_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapper);
-};
-
-#endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_TEST_UTIL_H__
« no previous file with comments | « components/webdata/DEPS ('k') | components/webdata/common/web_data_service_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698