|  | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|  | // Use of this source code is governed by a BSD-style license that can be | 
|  | // found in the LICENSE file. | 
|  |  | 
|  | #include "chrome/browser/extensions/extension_apitest.h" | 
|  | #include "chrome/common/extensions/features/feature_channel.h" | 
|  | #include "extensions/common/switches.h" | 
|  |  | 
|  | class ExtensionIdltestApiTest : public ExtensionApiTest { | 
|  | public: | 
|  | // Set the channel to "trunk" since idltest is restricted to trunk. | 
|  | ExtensionIdltestApiTest() : trunk_(chrome::VersionInfo::CHANNEL_UNKNOWN) {} | 
|  | virtual ~ExtensionIdltestApiTest() {} | 
|  |  | 
|  | private: | 
|  | extensions::ScopedCurrentChannel trunk_; | 
|  | }; | 
|  |  | 
|  | IN_PROC_BROWSER_TEST_F(ExtensionIdltestApiTest, IdlCompiler) { | 
|  | EXPECT_TRUE(RunExtensionSubtest("idltest/binary_data", "binary.html")); | 
|  | EXPECT_TRUE(RunExtensionSubtest("idltest/nocompile", "nocompile.html")); | 
|  | }; |