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

Side by Side Diff: mojo/services/public/cpp/view_manager/tests/view_manager_unittest.cc

Issue 298653010: Change Shell / ShellClient to ServiceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Support content Mojo stuff Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/services/public/cpp/view_manager/view_manager.h" 5 #include "mojo/services/public/cpp/view_manager/view_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "mojo/services/public/cpp/view_manager/lib/view_manager_private.h" 9 #include "mojo/services/public/cpp/view_manager/lib/view_manager_private.h"
10 #include "mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h" 10 #include "mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 240
241 void DestroyViewManager1() { 241 void DestroyViewManager1() {
242 view_manager_1_.reset(); 242 view_manager_1_.reset();
243 } 243 }
244 244
245 private: 245 private:
246 // Overridden from testing::Test: 246 // Overridden from testing::Test:
247 virtual void SetUp() OVERRIDE { 247 virtual void SetUp() OVERRIDE {
248 test_helper_.Init(); 248 test_helper_.Init();
249 view_manager_1_.reset(new ViewManager(test_helper_.shell())); 249 view_manager_1_.reset(new ViewManager(test_helper_.service_provider()));
250 view_manager_2_.reset(new ViewManager(test_helper_.shell())); 250 view_manager_2_.reset(new ViewManager(test_helper_.service_provider()));
251 view_manager_1_->Init(); 251 view_manager_1_->Init();
252 view_manager_2_->Init(); 252 view_manager_2_->Init();
253 } 253 }
254 254
255 base::MessageLoop loop_; 255 base::MessageLoop loop_;
256 shell::ShellTestHelper test_helper_; 256 shell::ShellTestHelper test_helper_;
257 scoped_ptr<ViewManager> view_manager_1_; 257 scoped_ptr<ViewManager> view_manager_1_;
258 scoped_ptr<ViewManager> view_manager_2_; 258 scoped_ptr<ViewManager> view_manager_2_;
259 int commit_count_; 259 int commit_count_;
260 260
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 572
573 node1->SetBounds(gfx::Rect(0, 0, 100, 100)); 573 node1->SetBounds(gfx::Rect(0, 0, 100, 100));
574 WaitForBoundsToChange(node1_2); 574 WaitForBoundsToChange(node1_2);
575 EXPECT_EQ(node1->bounds(), node1_2->bounds()); 575 EXPECT_EQ(node1->bounds(), node1_2->bounds());
576 576
577 577
578 } 578 }
579 579
580 } // namespace view_manager 580 } // namespace view_manager
581 } // namespace mojo 581 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698