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

Side by Side Diff: google_apis/gcm/gcm_client_impl_unittest.cc

Issue 209293002: Disable GCMClientImplTest.RegisterAppFromCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "google_apis/gcm/gcm_client_impl.h" 5 #include "google_apis/gcm/gcm_client_impl.h"
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/test/simple_test_clock.h" 10 #include "base/test/simple_test_clock.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 gcm_client()->Register(kAppId, senders); 407 gcm_client()->Register(kAppId, senders);
408 CompleteRegistration("reg_id"); 408 CompleteRegistration("reg_id");
409 409
410 EXPECT_EQ(REGISTRATION_COMPLETED, last_event()); 410 EXPECT_EQ(REGISTRATION_COMPLETED, last_event());
411 EXPECT_EQ(kAppId, last_app_id()); 411 EXPECT_EQ(kAppId, last_app_id());
412 EXPECT_EQ("reg_id", last_registration_id()); 412 EXPECT_EQ("reg_id", last_registration_id());
413 EXPECT_EQ(GCMClient::SUCCESS, last_result()); 413 EXPECT_EQ(GCMClient::SUCCESS, last_result());
414 EXPECT_TRUE(ExistsRegistration(kAppId)); 414 EXPECT_TRUE(ExistsRegistration(kAppId));
415 } 415 }
416 416
417 TEST_F(GCMClientImplTest, RegisterAppFromCache) { 417 TEST_F(GCMClientImplTest, DISABLED_RegisterAppFromCache) {
418 EXPECT_FALSE(ExistsRegistration(kAppId)); 418 EXPECT_FALSE(ExistsRegistration(kAppId));
419 419
420 std::vector<std::string> senders; 420 std::vector<std::string> senders;
421 senders.push_back("sender"); 421 senders.push_back("sender");
422 gcm_client()->Register(kAppId, senders); 422 gcm_client()->Register(kAppId, senders);
423 CompleteRegistration("reg_id"); 423 CompleteRegistration("reg_id");
424 EXPECT_TRUE(ExistsRegistration(kAppId)); 424 EXPECT_TRUE(ExistsRegistration(kAppId));
425 425
426 EXPECT_EQ(kAppId, last_app_id()); 426 EXPECT_EQ(kAppId, last_app_id());
427 EXPECT_EQ("reg_id", last_registration_id()); 427 EXPECT_EQ("reg_id", last_registration_id());
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 EXPECT_EQ(CurrentTime(), mcs_client()->last_data_message_stanza().sent()); 550 EXPECT_EQ(CurrentTime(), mcs_client()->last_data_message_stanza().sent());
551 EXPECT_EQ("007", mcs_client()->last_data_message_stanza().id()); 551 EXPECT_EQ("007", mcs_client()->last_data_message_stanza().id());
552 EXPECT_EQ("gcm@chrome.com", mcs_client()->last_data_message_stanza().from()); 552 EXPECT_EQ("gcm@chrome.com", mcs_client()->last_data_message_stanza().from());
553 EXPECT_EQ(kSender, mcs_client()->last_data_message_stanza().to()); 553 EXPECT_EQ(kSender, mcs_client()->last_data_message_stanza().to());
554 EXPECT_EQ("key", mcs_client()->last_data_message_stanza().app_data(0).key()); 554 EXPECT_EQ("key", mcs_client()->last_data_message_stanza().app_data(0).key());
555 EXPECT_EQ("value", 555 EXPECT_EQ("value",
556 mcs_client()->last_data_message_stanza().app_data(0).value()); 556 mcs_client()->last_data_message_stanza().app_data(0).value());
557 } 557 }
558 558
559 } // namespace gcm 559 } // namespace gcm
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698