blob: 7dd1fdf72a55c0344f197c29e226871e89457bdb [file] [log] [blame]
// Copyright 2020 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 "chrome/updater/external_constants_unittest.h"
#include <memory>
#include "chrome/updater/constants.h"
#include "chrome/updater/external_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace updater {
TEST_F(DevOverrideTest, TestDefaults) {
std::unique_ptr<ExternalConstants> consts = CreateExternalConstants();
EXPECT_TRUE(consts->UseCUP());
std::vector<GURL> urls = consts->UpdateURL();
ASSERT_EQ(urls.size(), 1ul);
EXPECT_EQ(urls[0], GURL(kUpdaterJSONDefaultUrl));
EXPECT_TRUE(urls[0].is_valid());
}
} // namespace updater