chromium/chrome/test/data/extensions/api_test/login_screen_apis/login_state/get_profile_type/test.js

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

function testGetProfileType(expected) {
  chrome.test.runTests([() => {
    chrome.loginState.getProfileType(profileType => {
      chrome.test.assertNoLastError();
      chrome.test.assertEq(expected, profileType);
      chrome.test.succeed();
    });
  }]);
}

chrome.test.getConfig(config => {
  testGetProfileType(config.customArg);
});