Home | History | Annotate | Download | only in input_method
      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
      3 // found in the LICENSE file.
      4 
      5 #include "base/logging.h"
      6 #include "base/memory/scoped_ptr.h"
      7 #include "chrome/browser/chromeos/input_method/ibus_controller.h"
      8 #include "chromeos/ime/mock_ibus_daemon_controller.h"
      9 #include "testing/gtest/include/gtest/gtest.h"
     10 
     11 namespace chromeos {
     12 namespace input_method {
     13 
     14 TEST(IBusControllerTest, TestCreate) {
     15   chromeos::IBusDaemonController::InitializeForTesting(
     16       new chromeos::MockIBusDaemonController());
     17   {
     18     scoped_ptr<IBusController> controller(IBusController::Create());
     19     EXPECT_TRUE(controller.get());
     20   }
     21   chromeos::IBusDaemonController::Shutdown();
     22 }
     23 
     24 }  // namespace input_method
     25 }  // namespace chromeos
     26