OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/api/autotest_private/autotest_private_api.h" | 5 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api.h" |
6 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api_fa
ctory.h" | |
7 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
8 | 7 |
9 #if defined(OS_CHROMEOS) | 8 #if defined(OS_CHROMEOS) |
10 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, AutotestPrivate) { | 9 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, AutotestPrivate) { |
11 // Turn on testing mode so we don't kill the browser. | 10 // Turn on testing mode so we don't kill the browser. |
12 extensions::AutotestPrivateAPIFactory::GetForProfile( | 11 extensions::AutotestPrivateAPI::GetFactoryInstance() |
13 browser()->profile())->set_test_mode(true); | 12 ->GetForProfile(browser()->profile()) |
| 13 ->set_test_mode(true); |
14 ASSERT_TRUE(RunComponentExtensionTest("autotest_private")) << message_; | 14 ASSERT_TRUE(RunComponentExtensionTest("autotest_private")) << message_; |
15 } | 15 } |
16 #endif | 16 #endif |
OLD | NEW |