#include "chrome/browser/sharing/click_to_call/click_to_call_context_menu_observer.h"
#include <memory>
#include <string>
#include <vector>
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/renderer_context_menu/mock_render_view_context_menu.h"
#include "chrome/browser/sharing/click_to_call/click_to_call_utils.h"
#include "chrome/browser/sharing/sharing_service_factory.h"
#include "components/sharing_message/features.h"
#include "components/sharing_message/mock_sharing_service.h"
#include "components/sharing_message/sharing_constants.h"
#include "components/sharing_message/sharing_target_device_info.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
_;
ByMove;
Eq;
NiceMock;
Property;
Return;
SharingMessage;
namespace {
const char kPhoneNumber[] = …;
class ClickToCallContextMenuObserverTest : public testing::Test { … };
}
MATCHER_P(ProtoEquals, message, "") { … }
TEST_F(ClickToCallContextMenuObserverTest, NoDevices_DoNotShowMenu) { … }
TEST_F(ClickToCallContextMenuObserverTest, SingleDevice_ShowMenu) { … }
TEST_F(ClickToCallContextMenuObserverTest, MultipleDevices_ShowMenu) { … }
TEST_F(ClickToCallContextMenuObserverTest,
MultipleDevices_MoreThanMax_ShowMenu) { … }