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

Unified Diff: chrome/browser/chromeos/login/mock_network_state_helper.h

Issue 2824283003: Fix autoupdate_EndToEndTest on veyron_rialto (Closed)
Patch Set: addressed comments Created 3 years, 8 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: chrome/browser/chromeos/login/mock_network_state_helper.h
diff --git a/chrome/browser/chromeos/login/mock_network_state_helper.h b/chrome/browser/chromeos/login/mock_network_state_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..cdb9a620aeb2deab130bc18aa1168b253988d97d
--- /dev/null
+++ b/chrome/browser/chromeos/login/mock_network_state_helper.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
xiyuan 2017/04/27 23:29:47 nit: no (c) here either and all the other files
kumarniranjan 2017/04/28 16:48:10 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_NETWORK_STATE_HELPER_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_NETWORK_STATE_HELPER_H_
+
+#include "chrome/browser/chromeos/login/helper.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromeos {
+
+namespace login {
+
+class MockNetworkStateHelper : public NetworkStateHelper {
+ public:
+ MockNetworkStateHelper();
+ ~MockNetworkStateHelper() override;
+ MOCK_CONST_METHOD0(GetCurrentNetworkName, base::string16(void));
+ MOCK_CONST_METHOD0(IsConnected, bool(void));
+ MOCK_CONST_METHOD0(IsConnecting, bool(void));
+};
+
+} // namespace login
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_NETWORK_STATE_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698