#include "chrome/test/chromedriver/chrome/web_view_info.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
template <int Code>
testing::AssertionResult StatusCodeIs(const Status& status) { … }
testing::AssertionResult StatusOk(const Status& status) { … }
}
class ParseSupportedTypeTest
: public testing::TestWithParam<std::pair<std::string, WebViewInfo::Type>> { … };
TEST_P(ParseSupportedTypeTest, ParseType) { … }
INSTANTIATE_TEST_SUITE_P(…);
class ParseUnsupportedTypeTest : public testing::TestWithParam<std::string> { … };
TEST_P(ParseUnsupportedTypeTest, ParseType) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(WebViewInfo, ParseEmptyType) { … }