#include "components/offline_pages/core/offline_page_client_policy.h"
#include <algorithm>
#include <memory>
#include <set>
#include "base/containers/contains.h"
#include "components/offline_pages/core/client_namespace_constants.h"
#include "components/offline_pages/core/offline_page_feature.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace offline_pages {
namespace {
const char kUndefinedNamespace[] = …;
bool isTemporary(const OfflinePageClientPolicy& policy) { … }
}
class ClientPolicyTest : public testing::Test { … };
void ClientPolicyTest::ExpectTemporary(std::string name_space) { … }
void ClientPolicyTest::ExpectDownloadSupport(std::string name_space,
bool expectation) { … }
void ClientPolicyTest::ExpectPersistent(std::string name_space) { … }
void ClientPolicyTest::ExpectRestrictedToTabFromClientId(std::string name_space,
bool expectation) { … }
void ClientPolicyTest::ExpectRequiresSpecificUserSettings(
std::string name_space,
bool expectation) { … }
TEST_F(ClientPolicyTest, FallbackTest) { … }
TEST_F(ClientPolicyTest, CheckBookmarkDefined) { … }
TEST_F(ClientPolicyTest, CheckLastNDefined) { … }
TEST_F(ClientPolicyTest, CheckAsyncDefined) { … }
TEST_F(ClientPolicyTest, CheckCCTDefined) { … }
TEST_F(ClientPolicyTest, CheckDownloadDefined) { … }
TEST_F(ClientPolicyTest, CheckNTPSuggestionsDefined) { … }
TEST_F(ClientPolicyTest, CheckLivePageSharingDefined) { … }
TEST_F(ClientPolicyTest, AllTemporaryNamespaces) { … }
}