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

Unified Diff: Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.h

Issue 293403002: Introduce mock test system for navigator content utils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.h
diff --git a/Source/core/css/CSSFontSelectorClient.h b/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.h
similarity index 82%
copy from Source/core/css/CSSFontSelectorClient.h
copy to Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.h
index b9096f60b1d21c83fff6d174c03d73c4a6d71968..fb9e9d661b0499f0184d7709d94dca29391db087 100644
--- a/Source/core/css/CSSFontSelectorClient.h
+++ b/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.h
@@ -28,22 +28,22 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
haraken 2014/05/29 13:01:26 Use the 4-line copyright. The same comment for oth
gyuyoung-inactive 2014/05/29 13:22:34 Ok, I will fix it in next patch.
-#ifndef CSSFontSelectorClient_h
-#define CSSFontSelectorClient_h
+#ifndef InternalsNavigatorContentUtils_h
+#define InternalsNavigatorContentUtils_h
+
+#include "wtf/text/WTFString.h"
namespace WebCore {
-class CSSFontSelector;
+class Document;
+class NavigatorContentUtilsClientMock;
+class Internals;
-class CSSFontSelectorClient : public NoBaseWillBeGarbageCollectedFinalized<CSSFontSelectorClient> {
+class InternalsNavigatorContentUtils {
public:
- virtual ~CSSFontSelectorClient() { }
-
- virtual void fontsNeedUpdate(CSSFontSelector*) = 0;
-
- virtual void trace(Visitor*) { }
+ static void setNavigatorContentUtilsClientMock(Internals&, Document*);
};
} // namespace WebCore
-#endif // CSSFontSelectorClient_h
+#endif // InternalsNavigatorContentUtils_h

Powered by Google App Engine
This is Rietveld 408576698