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

Side by Side Diff: components/gcm_driver/gcm_channel_status_request_unittest.cc

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 #include "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "components/gcm_driver/gcm_channel_status_request.h" 6 #include "components/gcm_driver/gcm_channel_status_request.h"
7 #include "net/url_request/test_url_fetcher_factory.h" 7 #include "net/url_request/test_url_fetcher_factory.h"
8 #include "net/url_request/url_request_test_util.h" 8 #include "net/url_request/url_request_test_util.h"
9 #include "sync/protocol/experiment_status.pb.h" 9 #include "sync/protocol/experiment_status.pb.h"
10 #include "sync/protocol/experiments_specifics.pb.h" 10 #include "sync/protocol/experiments_specifics.pb.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace gcm { 13 namespace gcm {
14 14
15 class GCMChannelStatusRequestTest : public testing::Test { 15 class GCMChannelStatusRequestTest : public testing::Test {
16 public: 16 public:
17 GCMChannelStatusRequestTest(); 17 GCMChannelStatusRequestTest();
18 virtual ~GCMChannelStatusRequestTest(); 18 ~GCMChannelStatusRequestTest() override;
19 19
20 protected: 20 protected:
21 enum GCMStatus { 21 enum GCMStatus {
22 NOT_SPECIFIED, 22 NOT_SPECIFIED,
23 GCM_ENABLED, 23 GCM_ENABLED,
24 GCM_DISABLED, 24 GCM_DISABLED,
25 }; 25 };
26 26
27 void StartRequest(); 27 void StartRequest();
28 void SetResponseStatusAndString(net::HttpStatusCode status_code, 28 void SetResponseStatusAndString(net::HttpStatusCode status_code,
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 SetResponseProtoData(GCM_DISABLED, poll_interval_seconds); 230 SetResponseProtoData(GCM_DISABLED, poll_interval_seconds);
231 CompleteFetch(); 231 CompleteFetch();
232 232
233 EXPECT_TRUE(request_callback_invoked_); 233 EXPECT_TRUE(request_callback_invoked_);
234 EXPECT_TRUE(update_received_); 234 EXPECT_TRUE(update_received_);
235 EXPECT_FALSE(enabled_); 235 EXPECT_FALSE(enabled_);
236 EXPECT_EQ(poll_interval_seconds, poll_interval_seconds_); 236 EXPECT_EQ(poll_interval_seconds, poll_interval_seconds_);
237 } 237 }
238 238
239 } // namespace gcm 239 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_account_mapper_unittest.cc ('k') | components/gcm_driver/gcm_client_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698