Commit 9ede1cb8 authored by Hidehiko Abe's avatar Hidehiko Abe Committed by Commit Bot

Remove gmock from chromeos/dbus.

There is no clients. Remove them.

BUG=234463
TEST=Ran bots.

Change-Id: Ic9ab45b52a6067daa04ec2323aec7189c9d68a37
Reviewed-on: https://chromium-review.googlesource.com/822312Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523466}
parent 209e1a6c
...@@ -559,12 +559,6 @@ static_library("test_support") { ...@@ -559,12 +559,6 @@ static_library("test_support") {
"cryptohome/mock_homedir_methods.h", "cryptohome/mock_homedir_methods.h",
"dbus/biod/test_utils.cc", "dbus/biod/test_utils.cc",
"dbus/biod/test_utils.h", "dbus/biod/test_utils.h",
"dbus/mock_shill_manager_client.cc",
"dbus/mock_shill_manager_client.h",
"dbus/mock_shill_profile_client.cc",
"dbus/mock_shill_profile_client.h",
"dbus/mock_shill_service_client.cc",
"dbus/mock_shill_service_client.h",
"dbus/services/service_provider_test_helper.cc", "dbus/services/service_provider_test_helper.cc",
"dbus/services/service_provider_test_helper.h", "dbus/services/service_provider_test_helper.h",
"disks/mock_disk_mount_manager.cc", "disks/mock_disk_mount_manager.cc",
......
// 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.
#include "chromeos/dbus/mock_shill_manager_client.h"
#include "dbus/object_path.h"
using ::testing::_;
using ::testing::AnyNumber;
namespace chromeos {
MockShillManagerClient::MockShillManagerClient() {
EXPECT_CALL(*this, Init(_)).Times(AnyNumber());
}
MockShillManagerClient::~MockShillManagerClient() = default;
} // namespace chromeos
// 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 CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
#define CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
#include <string>
#include "base/values.h"
#include "chromeos/dbus/shill_manager_client.h"
#include "chromeos/dbus/shill_property_changed_observer.h"
#include "net/base/ip_endpoint.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockShillManagerClient : public ShillManagerClient {
public:
MockShillManagerClient();
virtual ~MockShillManagerClient();
MOCK_METHOD1(Init, void(dbus::Bus* bus));
MOCK_METHOD1(AddPropertyChangedObserver,
void(ShillPropertyChangedObserver* observer));
MOCK_METHOD1(RemovePropertyChangedObserver,
void(ShillPropertyChangedObserver* observer));
MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback));
MOCK_METHOD1(GetNetworksForGeolocation,
void(const DictionaryValueCallback& callback));
MOCK_METHOD4(SetProperty, void(const std::string& name,
const base::Value& value,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(RequestScan, void(const std::string& type,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(EnableTechnology, void(const std::string& type,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(DisableTechnology, void(const std::string& type,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(ConfigureService, void(const base::DictionaryValue& properties,
const ObjectPathCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(ConfigureServiceForProfile,
void(const dbus::ObjectPath& profile_path,
const base::DictionaryValue& properties,
const ObjectPathCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(GetService, void(const base::DictionaryValue& properties,
const ObjectPathCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(VerifyDestination,
void(const VerificationProperties& properties,
const BooleanCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(VerifyAndEncryptCredentials,
void(const VerificationProperties& properties,
const std::string& service_path,
const StringCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(VerifyAndEncryptData,
void(const VerificationProperties& properties,
const std::string& data,
const StringCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD2(ConnectToBestServices,
void(const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(SetNetworkThrottlingStatus,
void(const NetworkThrottlingStatus&,
const base::Closure&,
const ErrorCallback& error_callback));
MOCK_METHOD0(GetTestInterface, TestInterface*());
};
} // namespace chromeos
#endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
// 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.
#include "chromeos/dbus/mock_shill_profile_client.h"
using ::testing::_;
using ::testing::AnyNumber;
namespace chromeos {
MockShillProfileClient::MockShillProfileClient() {
EXPECT_CALL(*this, Init(_)).Times(AnyNumber());
}
MockShillProfileClient::~MockShillProfileClient() = default;
} // namespace chromeos
// 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 CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_
#define CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_
#include <string>
#include "base/values.h"
#include "chromeos/dbus/shill_profile_client.h"
#include "chromeos/dbus/shill_property_changed_observer.h"
#include "dbus/object_path.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class ShillPropertyChangedObserver;
class MockShillProfileClient : public ShillProfileClient {
public:
MockShillProfileClient();
virtual ~MockShillProfileClient();
MOCK_METHOD1(Init, void(dbus::Bus* bus));
MOCK_METHOD2(AddPropertyChangedObserver,
void(const dbus::ObjectPath& profile_path,
ShillPropertyChangedObserver* observer));
MOCK_METHOD2(RemovePropertyChangedObserver,
void(const dbus::ObjectPath& profile_path,
ShillPropertyChangedObserver* observer));
MOCK_METHOD3(GetProperties, void(
const dbus::ObjectPath& profile_path,
const DictionaryValueCallbackWithoutStatus& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(GetEntry, void(
const dbus::ObjectPath& profile_path,
const std::string& entry_path,
const DictionaryValueCallbackWithoutStatus& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(DeleteEntry, void(const dbus::ObjectPath& profile_path,
const std::string& entry_path,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD0(GetTestInterface, TestInterface*());
};
} // namespace chromeos
#endif // CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_
// 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.
#include "chromeos/dbus/mock_shill_service_client.h"
namespace chromeos {
MockShillServiceClient::MockShillServiceClient() = default;
MockShillServiceClient::~MockShillServiceClient() = default;
} // namespace chromeos
// 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 CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_
#define CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_
#include <string>
#include <vector>
#include "base/values.h"
#include "chromeos/dbus/shill_property_changed_observer.h"
#include "chromeos/dbus/shill_service_client.h"
#include "dbus/object_path.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockShillServiceClient : public ShillServiceClient {
public:
MockShillServiceClient();
virtual ~MockShillServiceClient();
MOCK_METHOD1(Init, void(dbus::Bus* dbus));
MOCK_METHOD2(AddPropertyChangedObserver,
void(const dbus::ObjectPath& service_path,
ShillPropertyChangedObserver* observer));
MOCK_METHOD2(RemovePropertyChangedObserver,
void(const dbus::ObjectPath& service_path,
ShillPropertyChangedObserver* observer));
MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& service_path,
const DictionaryValueCallback& callback));
MOCK_METHOD5(SetProperty, void(const dbus::ObjectPath& service_path,
const std::string& name,
const base::Value& value,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(SetProperties, void(const dbus::ObjectPath& service_path,
const base::DictionaryValue& properties,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(ClearProperty, void(const dbus::ObjectPath& service_path,
const std::string& name,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(ClearProperties, void(const dbus::ObjectPath& service_path,
const std::vector<std::string>& names,
const ListValueCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(Connect, void(const dbus::ObjectPath& service_path,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(Disconnect, void(const dbus::ObjectPath& service_path,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(Remove, void(const dbus::ObjectPath& service_path,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(ActivateCellularModem,
void(const dbus::ObjectPath& service_path,
const std::string& carrier,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(CompleteCellularActivation,
void(const dbus::ObjectPath& service_path,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD2(GetLoadableProfileEntries,
void(const dbus::ObjectPath& service_path,
const DictionaryValueCallback& callback));
MOCK_METHOD0(GetTestInterface, TestInterface*());
};
} // namespace chromeos
#endif // CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment