1// Copyright 2013 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.
4
5#include "chrome/browser/apps/app_browsertest_util.h"
6#include "extensions/test/extension_test_message_listener.h"
7
8// Supported on all platforms, but on Windows only if RLZ is enabled.
9#if !defined(OS_WIN) || defined(ENABLE_RLZ)
10
11class MusicManagerPrivateTest : public extensions::PlatformAppBrowserTest {
12};
13
14IN_PROC_BROWSER_TEST_F(MusicManagerPrivateTest, DeviceIdValueReturned) {
15#if defined(OS_MACOSX) || defined(OS_LINUX)
16  // Note: Some MacOS/Linux trybots seem to run under VMware, which assigns
17  //       MAC addresses that are blacklisted. We still want the test
18  //       to succeed in that case.
19  const char* custom_arg = "device_id_may_be_undefined";
20#else
21  const char* custom_arg = NULL;
22#endif
23  ASSERT_TRUE(RunPlatformAppTestWithArg(
24      "platform_apps/music_manager_private/device_id_value_returned",
25      custom_arg))
26          << message_;
27}
28
29#endif
30