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

Unified Diff: mojo/common/handle_watcher_unittest.cc

Issue 218583009: Adds a way to associate key/value pairs with the environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make mojo_service_manager depend on mojo_common_lib Created 6 years, 9 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 | « mojo/common/handle_watcher.cc ('k') | mojo/environment/environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/handle_watcher_unittest.cc
diff --git a/mojo/common/handle_watcher_unittest.cc b/mojo/common/handle_watcher_unittest.cc
index 3eace0cabd0124d92b1143ee1d8c001c9e53e7eb..f4cfd713c56eee977ba2bc353da0404920ef774d 100644
--- a/mojo/common/handle_watcher_unittest.cc
+++ b/mojo/common/handle_watcher_unittest.cc
@@ -11,6 +11,7 @@
#include "base/run_loop.h"
#include "base/test/simple_test_tick_clock.h"
#include "mojo/common/time_helper.h"
+#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/public/tests/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -100,6 +101,14 @@ class HandleWatcherTest : public testing::Test {
test::SetTickClockForTest(NULL);
}
+ virtual void SetUp() OVERRIDE {
+ environment_.reset(new Environment);
+ }
+
+ virtual void TearDown() OVERRIDE {
+ environment_.reset();
+ }
+
protected:
void InstallTickClock() {
test::SetTickClockForTest(&tick_clock_);
@@ -109,6 +118,7 @@ class HandleWatcherTest : public testing::Test {
private:
base::MessageLoop message_loop_;
+ scoped_ptr<Environment> environment_;
DISALLOW_COPY_AND_ASSIGN(HandleWatcherTest);
};
« no previous file with comments | « mojo/common/handle_watcher.cc ('k') | mojo/environment/environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698