Index: native_client_sdk/src/libraries/c_salt/test/gtest_event_listener.h |
diff --git a/native_client_sdk/src/libraries/c_salt/test/gtest_event_listener.h b/native_client_sdk/src/libraries/c_salt/test/gtest_event_listener.h |
deleted file mode 100644 |
index 39f5139a2f441bb4d5d20bc651c2f9f569c01ea1..0000000000000000000000000000000000000000 |
--- a/native_client_sdk/src/libraries/c_salt/test/gtest_event_listener.h |
+++ /dev/null |
@@ -1,51 +0,0 @@ |
-// 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. |
-#ifndef C_SALT_TEST_GTEST_EVENT_LISTENER_H_ |
-#define C_SALT_TEST_GTEST_EVENT_LISTENER_H_ |
- |
-#include <string> |
-#include "c_salt/threading/ref_count.h" |
-#include "gtest/gtest.h" |
-#include "ppapi/cpp/completion_callback.h" |
- |
-namespace pp { |
-class Instance; |
-} // namespace pp |
- |
-namespace c_salt { |
- |
-// GTestEventListener is a gtest event listener that performs two functions: |
-// 1. It redirects output to PostMessage rather than printf, so that test events |
-// are dispatched to JS. |
-// 2. Channels post-message dispatches to the main thread via callbacks, so that |
-// it can be used from any thread. |
-// |
-// GTestEventListener formats gtest event messages to be parsed by javascript |
-// helper functions found in gtest_runner.js |
-class GTestEventListener : public ::testing::EmptyTestEventListener { |
- public: |
- explicit GTestEventListener(pp::Instance* instance); |
- |
- // TestEventListener overrides. |
- virtual void OnTestProgramStart(const ::testing::UnitTest& unit_test); |
- virtual void OnTestCaseStart(const ::testing::TestCase& test_case); |
- virtual void OnTestStart(const ::testing::TestInfo& test_info); |
- virtual void OnTestPartResult( |
- const ::testing::TestPartResult& test_part_result); |
- virtual void OnTestEnd(const ::testing::TestInfo& test_info); |
- virtual void OnTestCaseEnd(const ::testing::TestCase& test_case); |
- virtual void OnTestProgramEnd(const ::testing::UnitTest& unit_test); |
- |
- private: |
- void PostMessage(const std::string& str); |
- void PostMessageCallback(int32_t result, const std::string& str); |
- |
- pp::Instance* instance_; |
- pp::CompletionCallbackFactory<GTestEventListener, |
- ::threading::RefCount> factory_; |
-}; |
- |
-} // namespace c_salt |
-#endif // C_SALT_TEST_GTEST_EVENT_LISTENER_H_ |
- |