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

Unified Diff: chrome_frame/test/automation_client_mock.h

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 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
« no previous file with comments | « chrome_frame/task_marshaller.cc ('k') | chrome_frame/test/automation_client_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/automation_client_mock.h
diff --git a/chrome_frame/test/automation_client_mock.h b/chrome_frame/test/automation_client_mock.h
deleted file mode 100644
index f606c8c5b31c5e528ab698006983810272d678a4..0000000000000000000000000000000000000000
--- a/chrome_frame/test/automation_client_mock.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 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 CHROME_FRAME_TEST_AUTOMATION_CLIENT_MOCK_H_
-#define CHROME_FRAME_TEST_AUTOMATION_CLIENT_MOCK_H_
-
-#include <windows.h>
-#include <string>
-
-#include "base/strings/string_util.h"
-#include "chrome_frame/chrome_frame_automation.h"
-#include "chrome_frame/test/chrome_frame_test_utils.h"
-#include "chrome_frame/test/proxy_factory_mock.h"
-#include "chrome_frame/utils.h"
-#include "gmock/gmock.h"
-
-using testing::StrictMock;
-
-class MockAutomationProxy : public ChromeFrameAutomationProxy {
- public:
- MOCK_METHOD1(Send, bool(IPC::Message*));
- MOCK_METHOD3(SendAsAsync,
- void(IPC::SyncMessage* msg,
- SyncMessageReplyDispatcher::SyncMessageCallContext* context,
- void* key));
- MOCK_METHOD1(CancelAsync, void(void* key));
- MOCK_METHOD1(CreateTabProxy, scoped_refptr<TabProxy>(int handle));
- MOCK_METHOD1(ReleaseTabProxy, void(AutomationHandle handle));
- MOCK_METHOD0(server_version, std::string(void));
-
- ~MockAutomationProxy() {}
-};
-
-struct MockAutomationMessageSender : public AutomationMessageSender {
- virtual bool Send(IPC::Message* msg) {
- return proxy_->Send(msg);
- }
-
- virtual bool Send(IPC::Message* msg, int timeout_ms) {
- return proxy_->Send(msg);
- }
-
- void ForwardTo(StrictMock<MockAutomationProxy> *p) {
- proxy_ = p;
- }
-
- StrictMock<MockAutomationProxy>* proxy_;
-};
-
-#endif // CHROME_FRAME_TEST_AUTOMATION_CLIENT_MOCK_H_
« no previous file with comments | « chrome_frame/task_marshaller.cc ('k') | chrome_frame/test/automation_client_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698