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

Unified Diff: components/test_runner/mock_content_settings_client.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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: components/test_runner/mock_content_settings_client.h
diff --git a/components/test_runner/mock_content_settings_client.h b/components/test_runner/mock_content_settings_client.h
deleted file mode 100644
index f01440b62f7548b1bc19970ee710ca15572b0e1f..0000000000000000000000000000000000000000
--- a/components/test_runner/mock_content_settings_client.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 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_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_
-#define COMPONENTS_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_
-
-#include "base/macros.h"
-#include "third_party/WebKit/public/web/WebContentSettingsClient.h"
-
-namespace test_runner {
-
-class LayoutTestRuntimeFlags;
-class WebTestDelegate;
-
-class MockContentSettingsClient : public blink::WebContentSettingsClient {
- public:
- // Caller has to guarantee that |layout_test_runtime_flags| lives longer
- // than the MockContentSettingsClient being constructed here.
- MockContentSettingsClient(LayoutTestRuntimeFlags* layout_test_runtime_flags);
-
- ~MockContentSettingsClient() override;
-
- // blink::WebContentSettingsClient:
- bool allowImage(bool enabled_per_settings,
- const blink::WebURL& image_url) override;
- bool allowScript(bool enabled_per_settings) override;
- bool allowScriptFromSource(bool enabled_per_settings,
- const blink::WebURL& script_url) override;
- bool allowStorage(bool local) override;
- bool allowPlugins(bool enabled_per_settings) override;
- bool allowRunningInsecureContent(bool enabled_per_settings,
- const blink::WebSecurityOrigin& context,
- const blink::WebURL& url) override;
- bool allowAutoplay(bool default_value) override;
-
- void SetDelegate(WebTestDelegate* delegate);
-
- private:
- WebTestDelegate* delegate_;
-
- LayoutTestRuntimeFlags* flags_;
-
- DISALLOW_COPY_AND_ASSIGN(MockContentSettingsClient);
-};
-
-} // namespace test_runner
-
-#endif // COMPONENTS_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698