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

Side by Side Diff: services/view_manager/gesture_manager_unittest.cc

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "services/view_manager/gesture_manager.h" 5 #include "services/view_manager/gesture_manager.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "mojo/services/input_events/public/interfaces/input_events.mojom.h" 9 #include "mojo/services/input_events/interfaces/input_events.mojom.h"
10 #include "mojo/services/view_manager/public/cpp/keys.h" 10 #include "mojo/services/view_manager/public/cpp/keys.h"
11 #include "services/view_manager/gesture_manager_delegate.h" 11 #include "services/view_manager/gesture_manager_delegate.h"
12 #include "services/view_manager/server_view.h" 12 #include "services/view_manager/server_view.h"
13 #include "services/view_manager/test_server_view_delegate.h" 13 #include "services/view_manager/test_server_view_delegate.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace view_manager { 16 namespace view_manager {
17 namespace { 17 namespace {
18 18
19 const uint32_t kInvalidGestureId = GestureManager::kInvalidGestureId; 19 const uint32_t kInvalidGestureId = GestureManager::kInvalidGestureId;
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 EXPECT_EQ(std::string(), gesture_delegate_.GetAndClearDescriptions()); 458 EXPECT_EQ(std::string(), gesture_delegate_.GetAndClearDescriptions());
459 459
460 // Respond from the first view, with no gesture, should unblock cancel. 460 // Respond from the first view, with no gesture, should unblock cancel.
461 SetGestures(&root_, pointer_id, kInvalidGestureId, SetWith(5u, 10u), 461 SetGestures(&root_, pointer_id, kInvalidGestureId, SetWith(5u, 10u),
462 std::set<uint32_t>()); 462 std::set<uint32_t>());
463 EXPECT_EQ("cancel pointer=1 connection=1 chosen=false", 463 EXPECT_EQ("cancel pointer=1 connection=1 chosen=false",
464 gesture_delegate_.GetAndClearDescriptions()); 464 gesture_delegate_.GetAndClearDescriptions());
465 } 465 }
466 466
467 } // namespace view_manager 467 } // namespace view_manager
OLDNEW
« no previous file with comments | « services/view_manager/gesture_manager_delegate.h ('k') | services/view_manager/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698