| Index: remoting/host/host_experiment_servant_unittest.cc
|
| diff --git a/remoting/host/host_experiment_session_plugin_unittest.cc b/remoting/host/host_experiment_servant_unittest.cc
|
| similarity index 84%
|
| rename from remoting/host/host_experiment_session_plugin_unittest.cc
|
| rename to remoting/host/host_experiment_servant_unittest.cc
|
| index cc6b5a5999918fa348a8226025a17820c005d5ea..ac1e9f6a78dcc7b1c7daaf004d8f1badc0ff603a 100644
|
| --- a/remoting/host/host_experiment_session_plugin_unittest.cc
|
| +++ b/remoting/host/host_experiment_servant_unittest.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "remoting/host/host_experiment_session_plugin.h"
|
| +#include "remoting/host/host_experiment_servant.h"
|
|
|
| #include <memory>
|
|
|
| @@ -17,8 +17,8 @@ using buzz::XmlElement;
|
|
|
| namespace remoting {
|
|
|
| -TEST(HostExperimentSessionPluginTest, AttachAttributes) {
|
| - HostExperimentSessionPlugin plugin;
|
| +TEST(HostExperimentServantTest, AttachAttributes) {
|
| + HostExperimentServant plugin;
|
| std::unique_ptr<XmlElement> attachments = plugin.GetNextMessage();
|
| ASSERT_TRUE(attachments);
|
| ASSERT_EQ(attachments->Name(),
|
| @@ -30,27 +30,27 @@ TEST(HostExperimentSessionPluginTest, AttachAttributes) {
|
| ASSERT_FALSE(attachments);
|
| }
|
|
|
| -TEST(HostExperimentSessionPluginTest, LoadConfiguration) {
|
| +TEST(HostExperimentServantTest, LoadConfiguration) {
|
| std::unique_ptr<XmlElement> attachment(
|
| new XmlElement(QName(kChromotingXmlNamespace, "attachments")));
|
| XmlElement* configuration =
|
| new XmlElement(QName(kChromotingXmlNamespace, "host-configuration"));
|
| configuration->SetBodyText("This Is A Test Configuration");
|
| attachment->AddElement(configuration);
|
| - HostExperimentSessionPlugin plugin;
|
| + HostExperimentServant plugin;
|
| plugin.OnIncomingMessage(*attachment);
|
| ASSERT_TRUE(plugin.configuration_received());
|
| ASSERT_EQ(plugin.configuration(), "This Is A Test Configuration");
|
| }
|
|
|
| -TEST(HostExperimentSessionPluginTest, IgnoreSecondConfiguration) {
|
| +TEST(HostExperimentServantTest, IgnoreSecondConfiguration) {
|
| std::unique_ptr<XmlElement> attachment(
|
| new XmlElement(QName(kChromotingXmlNamespace, "attachments")));
|
| XmlElement* configuration =
|
| new XmlElement(QName(kChromotingXmlNamespace, "host-configuration"));
|
| attachment->AddElement(configuration);
|
| configuration->SetBodyText("config1");
|
| - HostExperimentSessionPlugin plugin;
|
| + HostExperimentServant plugin;
|
| plugin.OnIncomingMessage(*attachment);
|
| ASSERT_TRUE(plugin.configuration_received());
|
| ASSERT_EQ(plugin.configuration(), "config1");
|
|
|