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

Unified Diff: ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc

Issue 2187953002: mash: Migrate ShelfButton* to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc
diff --git a/ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc b/ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc
similarity index 97%
rename from ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc
rename to ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc
index 129d9f5c67e81f49b8e59e9f859e10d8dd3ea612..cc5b49da7f5b1165fc092af7664d02cf6fca551d 100644
--- a/ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc
+++ b/ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/shelf/shelf_button_pressed_metric_tracker.h"
+#include "ash/common/shelf/shelf_button_pressed_metric_tracker.h"
#include <utility>
-#include "ash/shelf/shelf.h"
+#include "ash/common/shelf/wm_shelf.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/shelf_button_pressed_metric_tracker_test_api.h"
#include "ash/test/shelf_test_api.h"
@@ -106,8 +106,8 @@ ShelfButtonPressedMetricTrackerTest::~ShelfButtonPressedMetricTrackerTest() {}
void ShelfButtonPressedMetricTrackerTest::SetUp() {
AshTestBase::SetUp();
- Shelf* shelf = Shelf::ForPrimaryDisplay();
- ShelfViewTestAPI shelf_view_test_api(ShelfTestAPI(shelf).shelf_view());
+ WmShelf* wm_shelf = GetPrimaryShelf();
+ ShelfViewTestAPI shelf_view_test_api(wm_shelf->GetShelfViewForTesting());
metric_tracker_ = shelf_view_test_api.shelf_button_pressed_metric_tracker();

Powered by Google App Engine
This is Rietveld 408576698