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

Side by Side Diff: chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 #include "chrome/browser/push_messaging/push_messaging_app_identifier.h" 5 #include "chrome/browser/push_messaging/push_messaging_app_identifier.h"
6 6
7 #include <stdint.h>
8
7 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
8 #include "content/public/test/test_browser_thread_bundle.h" 10 #include "content/public/test/test_browser_thread_bundle.h"
9 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
10 12
11 namespace { 13 namespace {
12 14
13 void ExpectAppIdentifiersEqual(const PushMessagingAppIdentifier& a, 15 void ExpectAppIdentifiersEqual(const PushMessagingAppIdentifier& a,
14 const PushMessagingAppIdentifier& b) { 16 const PushMessagingAppIdentifier& b) {
15 EXPECT_EQ(a.app_id(), b.app_id()); 17 EXPECT_EQ(a.app_id(), b.app_id());
16 EXPECT_EQ(a.origin(), b.origin()); 18 EXPECT_EQ(a.origin(), b.origin());
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 ExpectAppIdentifiersEqual(different_origin_, app_identifier); 247 ExpectAppIdentifiersEqual(different_origin_, app_identifier);
246 contained_different_origin = true; 248 contained_different_origin = true;
247 } else { 249 } else {
248 ExpectAppIdentifiersEqual(different_sw_, app_identifier); 250 ExpectAppIdentifiersEqual(different_sw_, app_identifier);
249 contained_different_sw = true; 251 contained_different_sw = true;
250 } 252 }
251 } 253 }
252 EXPECT_TRUE(contained_different_origin); 254 EXPECT_TRUE(contained_different_origin);
253 EXPECT_TRUE(contained_different_sw); 255 EXPECT_TRUE(contained_different_sw);
254 } 256 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698