blob: 2a2d4e7a3c3118e203587fec936cbb9292c60a63 [file] [log] [blame]
// Copyright 2014 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 <string>
#include "base/macros.h"
namespace base {
class CommandLine;
// Class used to start a test license server.
class TestLicenseServerConfig {
TestLicenseServerConfig() {}
virtual ~TestLicenseServerConfig() {}
// Returns a string containing the URL and port the server is listening to.
// This URL is directly used by the Web app to request a license, example:
// http://localhost:8888/license_server
virtual std::string GetServerURL() = 0;
// Returns true if it successfully sets the command line to run the license
// server with needed args and switches.
virtual bool GetServerCommandLine(base::CommandLine* command_line) = 0;
// Returns true if the server is supported on current platform.
virtual bool IsPlatformSupported() = 0;