OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/apps/app_browsertest_util.h" | 5 #include "chrome/browser/apps/app_browsertest_util.h" |
6 #include "extensions/test/extension_test_message_listener.h" | 6 #include "extensions/test/extension_test_message_listener.h" |
7 | 7 |
8 // Supported on all platforms, but on Windows only if RLZ is enabled. | 8 // Supported on all platforms, but on Windows only if RLZ is enabled. |
9 #if !defined(OS_WIN) || defined(ENABLE_RLZ) | 9 #if !defined(OS_WIN) || defined(ENABLE_RLZ) |
10 | 10 |
11 class MusicManagerPrivateTest : public extensions::PlatformAppBrowserTest { | 11 class MusicManagerPrivateTest : public extensions::PlatformAppBrowserTest { |
12 }; | 12 }; |
13 | 13 |
14 IN_PROC_BROWSER_TEST_F(MusicManagerPrivateTest, DeviceIdValueReturned) { | 14 IN_PROC_BROWSER_TEST_F(MusicManagerPrivateTest, DeviceIdValueReturned) { |
15 #if defined(OS_MACOSX) || defined(OS_LINUX) | 15 ASSERT_TRUE(RunPlatformAppTest( |
16 // Note: Some MacOS/Linux trybots seem to run under VMware, which assigns | 16 "platform_apps/music_manager_private/device_id_value_returned")) |
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_; | 17 << message_; |
27 } | 18 } |
28 | 19 |
29 #endif | 20 #endif |
OLD | NEW |