1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Must be packed to ../enterprise_device_attributes.crx using the private key
6 // ../enterprise_device_attributes.pem .
8 // The expected directory device id, that is passed by caller.
9 var expected_value
= location
.search
.substring(1);
11 var assertEq
= chrome
.test
.assertEq
;
12 var assertTrue
= chrome
.test
.assertTrue
;
13 var callbackPass
= chrome
.test
.callbackPass
14 var succeed
= chrome
.test
.succeed
;
16 assertTrue(chrome
.enterprise
.deviceAttributes
.getDirectoryDeviceId(
17 callbackPass(function(device_id
) {
18 assertEq(expected_value
, device_id
);