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

Side by Side Diff: chrome/browser/android/data_usage/data_use_tab_model_unittest.cc

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 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 "chrome/browser/android/data_usage/data_use_tab_model.h" 5 #include "chrome/browser/android/data_usage/data_use_tab_model.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 MOCK_METHOD1(NotifyTrackingStarting, void(SessionID::id_type tab_id)); 74 MOCK_METHOD1(NotifyTrackingStarting, void(SessionID::id_type tab_id));
75 MOCK_METHOD1(NotifyTrackingEnding, void(SessionID::id_type tab_id)); 75 MOCK_METHOD1(NotifyTrackingEnding, void(SessionID::id_type tab_id));
76 MOCK_METHOD0(OnDataUseTabModelReady, void()); 76 MOCK_METHOD0(OnDataUseTabModelReady, void());
77 }; 77 };
78 78
79 class TestExternalDataUseObserverBridge 79 class TestExternalDataUseObserverBridge
80 : public chrome::android::ExternalDataUseObserverBridge { 80 : public chrome::android::ExternalDataUseObserverBridge {
81 public: 81 public:
82 TestExternalDataUseObserverBridge() {} 82 TestExternalDataUseObserverBridge() {}
83 void FetchMatchingRules() const override {} 83 void FetchMatchingRules() const override {}
84 void ShouldRegisterAsDataUseObserver(bool should_register) const override{}; 84 void ShouldRegisterAsDataUseObserver(bool should_register) const override {}
85 }; 85 };
86 86
87 std::unique_ptr<content::NavigationEntry> CreateNavigationEntry( 87 std::unique_ptr<content::NavigationEntry> CreateNavigationEntry(
88 const std::string& url) { 88 const std::string& url) {
89 auto navigation_entry(content::NavigationEntry::Create()); 89 auto navigation_entry(content::NavigationEntry::Create());
90 navigation_entry->SetURL(GURL(url)); 90 navigation_entry->SetURL(GURL(url));
91 return navigation_entry; 91 return navigation_entry;
92 } 92 }
93 93
94 void ExpectDataUseLabelInNavigationEntry( 94 void ExpectDataUseLabelInNavigationEntry(
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 RegisterURLRegexes(app_package_names, domain_regexes, labels); 1141 RegisterURLRegexes(app_package_names, domain_regexes, labels);
1142 data_use_tab_model_->OnControlAppInstallStateChange(false); 1142 data_use_tab_model_->OnControlAppInstallStateChange(false);
1143 data_use_tab_model_->OnControlAppInstallStateChange(true); 1143 data_use_tab_model_->OnControlAppInstallStateChange(true);
1144 testing::Mock::VerifyAndClearExpectations(&mock_observer); 1144 testing::Mock::VerifyAndClearExpectations(&mock_observer);
1145 EXPECT_TRUE(data_use_tab_model_->is_ready_for_navigation_event()); 1145 EXPECT_TRUE(data_use_tab_model_->is_ready_for_navigation_event());
1146 } 1146 }
1147 1147
1148 } // namespace android 1148 } // namespace android
1149 1149
1150 } // namespace chrome 1150 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698