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

Unified Diff: components/test_runner/mock_credential_manager_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_credential_manager_client.h
diff --git a/components/test_runner/mock_credential_manager_client.h b/components/test_runner/mock_credential_manager_client.h
deleted file mode 100644
index 65dbd3ccc2a4ef7acce16d89d034955614bfd889..0000000000000000000000000000000000000000
--- a/components/test_runner/mock_credential_manager_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_CREDENTIAL_MANAGER_CLIENT_H_
-#define COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "third_party/WebKit/public/platform/WebCredentialManagerClient.h"
-#include "third_party/WebKit/public/platform/WebCredentialManagerError.h"
-#include "third_party/WebKit/public/platform/WebVector.h"
-
-namespace blink {
-class WebCredential;
-class WebURL;
-}
-
-namespace test_runner {
-
-class MockCredentialManagerClient : public blink::WebCredentialManagerClient {
- public:
- MockCredentialManagerClient();
- virtual ~MockCredentialManagerClient();
-
- // We take ownership of the |credential|.
- void SetResponse(blink::WebCredential* credential);
- void SetError(const std::string& error);
-
- // blink::WebCredentialManager:
- void dispatchStore(const blink::WebCredential& credential,
- NotificationCallbacks* callbacks) override;
- void dispatchRequireUserMediation(NotificationCallbacks* callbacks) override;
- void dispatchGet(bool zero_click_only,
- bool include_passwords,
- const blink::WebVector<blink::WebURL>& federations,
- RequestCallbacks* callbacks) override;
-
- private:
- std::unique_ptr<blink::WebCredential> credential_;
- blink::WebCredentialManagerError error_;
-
- DISALLOW_COPY_AND_ASSIGN(MockCredentialManagerClient);
-};
-
-} // namespace test_runner
-
-#endif // COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698