blob: fd32f517493441d3e3431492b0162cecbee26daa [file] [log] [blame]
// 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 "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/chromeos/input_method/ibus_controller.h"
#include "chromeos/ime/mock_ibus_daemon_controller.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromeos {
namespace input_method {
TEST(IBusControllerTest, TestCreate) {
chromeos::IBusDaemonController::InitializeForTesting(
new chromeos::MockIBusDaemonController());
{
scoped_ptr<IBusController> controller(IBusController::Create());
EXPECT_TRUE(controller.get());
}
chromeos::IBusDaemonController::Shutdown();
}
} // namespace input_method
} // namespace chromeos