This source file includes following definitions.
- TEST_F
 
- TEST_F
 
- TEST_F
 
#include "jingle/notifier/listener/push_client.h"
#include "base/bind_helpers.h"
#include "base/compiler_specific.h"
#include "base/location.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/threading/thread.h"
#include "jingle/notifier/base/notifier_options.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace notifier {
namespace {
class PushClientTest : public testing::Test {
 protected:
  PushClientTest() {
    notifier_options_.request_context_getter =
        new net::TestURLRequestContextGetter(
            message_loop_.message_loop_proxy());
  }
  virtual ~PushClientTest() {}
  
  base::MessageLoopForIO message_loop_;
  NotifierOptions notifier_options_;
};
TEST_F(PushClientTest, CreateDefaultOnIOThread) {
  const scoped_ptr<PushClient> push_client(
      PushClient::CreateDefault(notifier_options_));
}
TEST_F(PushClientTest, CreateDefaultOffIOThread) {
  base::Thread thread("Non-IO thread");
  EXPECT_TRUE(thread.Start());
  thread.message_loop()->PostTask(
      FROM_HERE,
      base::Bind(base::IgnoreResult(&PushClient::CreateDefault),
                 notifier_options_));
  thread.Stop();
}
TEST_F(PushClientTest, CreateDefaultOnIOThreadOnIOThread) {
  const scoped_ptr<PushClient> push_client(
      PushClient::CreateDefaultOnIOThread(notifier_options_));
}
}  
}