Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: native_client_sdk/src/libraries/c_salt/test/gtest_nacl_environment.h

Issue 10854137: [NaCl SDK] gtest_ppapi library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove hacks Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/c_salt/test/gtest_nacl_environment.h
diff --git a/native_client_sdk/src/libraries/c_salt/test/gtest_nacl_environment.h b/native_client_sdk/src/libraries/c_salt/test/gtest_nacl_environment.h
deleted file mode 100644
index 35a6043c1745e0c40437912614af8f601166a12e..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/c_salt/test/gtest_nacl_environment.h
+++ /dev/null
@@ -1,39 +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_NACL_ENVIRONMENT_H_
-#define C_SALT_TEST_GTEST_NACL_ENVIRONMENT_H_
-
-#include <cassert>
-#include "gtest/gtest.h"
-
-namespace pp {
-class Instance;
-} // namespace pp
-
-namespace c_salt {
-
-// A custom environment for NaCl gtest.
-class GTestNaclEnvironment : public ::testing::Environment {
- public:
- // Set the global NaCl instance that will be shared by all the tests.
- static void set_global_instance(pp::Instance* instance) {
- global_instance_ = instance;
- }
-
- // Get the global NaCl instance.
- static pp::Instance* global_instance() { return global_instance_; }
-
- // Environment overrides.
- virtual void SetUp();
- virtual void TearDown();
-
- private:
- static pp::Instance* global_instance_;
-};
-
-} // namespace c_salt
-
-#endif // C_SALT_TEST_GTEST_NACL_ENVIRONMENT_H_
-

Powered by Google App Engine
This is Rietveld 408576698