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

Unified Diff: mojo/common/common_type_converters_unittest.cc

Issue 134823005: Mojo: re-organize public tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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
« no previous file with comments | « no previous file | mojo/mojo.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/common_type_converters_unittest.cc
diff --git a/mojo/common/common_type_converters_unittest.cc b/mojo/common/common_type_converters_unittest.cc
index 96a814e943425f74a6a7383bf7e345a65de9eb56..90649fd45c2573b6e7ea2b66d04af31a3c7b35a7 100644
--- a/mojo/common/common_type_converters_unittest.cc
+++ b/mojo/common/common_type_converters_unittest.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "mojo/common/bindings_support_impl.h"
#include "mojo/common/common_type_converters.h"
-#include "mojo/public/tests/simple_bindings_support.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
+namespace common {
namespace test {
namespace {
@@ -24,7 +25,15 @@ void ExpectEqualsMojoString(const std::string& expected,
class CommonTypeConvertersTest : public testing::Test {
private:
- SimpleBindingsSupport bindings_support_;
+ virtual void SetUp() OVERRIDE {
+ BindingsSupport::Set(&bindings_support_);
+ }
+
+ virtual void TearDown() OVERRIDE {
+ BindingsSupport::Set(NULL);
+ }
+
+ BindingsSupportImpl bindings_support_;
};
TEST_F(CommonTypeConvertersTest, StringPiece) {
@@ -48,4 +57,5 @@ TEST_F(CommonTypeConvertersTest, StringPiece) {
}
} // namespace test
+} // namespace common
} // namespace mojo
« no previous file with comments | « no previous file | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698