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

Side by Side Diff: ios/web/navigation/navigation_manager_impl_unittest.mm

Issue 2926553004: Remove trailing semicolon at the end of a method definition (Closed)
Patch Set: rebase Created 3 years, 6 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 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 #import "ios/web/navigation/navigation_manager_impl.h" 5 #import "ios/web/navigation/navigation_manager_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/bind_objc_block.h" 8 #include "base/mac/bind_objc_block.h"
9 #import "base/mac/scoped_nsobject.h" 9 #import "base/mac/scoped_nsobject.h"
10 #import "ios/web/navigation/crw_session_controller+private_constructors.h" 10 #import "ios/web/navigation/crw_session_controller+private_constructors.h"
(...skipping 27 matching lines...) Expand all
38 class TestNavigationManagerDelegate : public NavigationManagerDelegate { 38 class TestNavigationManagerDelegate : public NavigationManagerDelegate {
39 public: 39 public:
40 bool reload_called() { return reload_called_; } 40 bool reload_called() { return reload_called_; }
41 41
42 private: 42 private:
43 // NavigationManagerDelegate overrides. 43 // NavigationManagerDelegate overrides.
44 void GoToIndex(int index) override {} 44 void GoToIndex(int index) override {}
45 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override {} 45 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override {}
46 void Reload() override { reload_called_ = true; } 46 void Reload() override { reload_called_ = true; }
47 void OnNavigationItemsPruned(size_t pruned_item_count) override {} 47 void OnNavigationItemsPruned(size_t pruned_item_count) override {}
48 void OnNavigationItemChanged() override{}; 48 void OnNavigationItemChanged() override {}
49 void OnNavigationItemCommitted(const LoadCommittedDetails&) override {} 49 void OnNavigationItemCommitted(const LoadCommittedDetails&) override {}
50 WebState* GetWebState() override { return nullptr; } 50 WebState* GetWebState() override { return nullptr; }
51 51
52 bool reload_called_ = false; 52 bool reload_called_ = false;
53 }; 53 };
54 } // namespace 54 } // namespace
55 55
56 // Test fixture for NavigationManagerImpl testing. 56 // Test fixture for NavigationManagerImpl testing.
57 class NavigationManagerTest : public PlatformTest { 57 class NavigationManagerTest : public PlatformTest {
58 protected: 58 protected:
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 // Create an item that does not exist in the NavigationManagerImpl. 1381 // Create an item that does not exist in the NavigationManagerImpl.
1382 std::unique_ptr<web::NavigationItem> item_not_found = 1382 std::unique_ptr<web::NavigationItem> item_not_found =
1383 web::NavigationItem::Create(); 1383 web::NavigationItem::Create();
1384 // Verify GetIndexOfItem() results. 1384 // Verify GetIndexOfItem() results.
1385 EXPECT_EQ(0, navigation_manager()->GetIndexOfItem(item0)); 1385 EXPECT_EQ(0, navigation_manager()->GetIndexOfItem(item0));
1386 EXPECT_EQ(1, navigation_manager()->GetIndexOfItem(item1)); 1386 EXPECT_EQ(1, navigation_manager()->GetIndexOfItem(item1));
1387 EXPECT_EQ(-1, navigation_manager()->GetIndexOfItem(item_not_found.get())); 1387 EXPECT_EQ(-1, navigation_manager()->GetIndexOfItem(item_not_found.get()));
1388 } 1388 }
1389 1389
1390 } // namespace web 1390 } // namespace web
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/settings/settings_collection_view_controller.mm ('k') | media/ffmpeg/ffmpeg_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698