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

Side by Side Diff: chrome/browser/geolocation/geolocation_browsertest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h>
6
5 #include <string> 7 #include <string>
6 8
7 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h"
8 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
11 #include "base/test/simple_test_clock.h" 14 #include "base/test/simple_test_clock.h"
12 #include "base/time/clock.h" 15 #include "base/time/clock.h"
16 #include "build/build_config.h"
13 #include "chrome/browser/chrome_notification_types.h" 17 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
15 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 19 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
16 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/ui/browser.h" 21 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_commands.h" 22 #include "chrome/browser/ui/browser_commands.h"
19 #include "chrome/browser/ui/tabs/tab_strip_model.h" 23 #include "chrome/browser/ui/tabs/tab_strip_model.h"
20 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" 24 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h"
21 #include "chrome/test/base/in_process_browser_test.h" 25 #include "chrome/test/base/in_process_browser_test.h"
22 #include "chrome/test/base/ui_test_utils.h" 26 #include "chrome/test/base/ui_test_utils.h"
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 // Calling watchPosition should trigger the last usage update. 764 // Calling watchPosition should trigger the last usage update.
761 WatchPositionAndObservePermissionBubble(false); 765 WatchPositionAndObservePermissionBubble(false);
762 ExpectPosition(fake_latitude(), fake_longitude()); 766 ExpectPosition(fake_latitude(), fake_longitude());
763 767
764 // Last usage has been updated. 768 // Last usage has been updated.
765 EXPECT_EQ(GetHostContentSettingsMap()->GetLastUsage( 769 EXPECT_EQ(GetHostContentSettingsMap()->GetLastUsage(
766 current_url().GetOrigin(), 770 current_url().GetOrigin(),
767 current_url().GetOrigin(), 771 current_url().GetOrigin(),
768 CONTENT_SETTINGS_TYPE_GEOLOCATION).ToDoubleT(), 13); 772 CONTENT_SETTINGS_TYPE_GEOLOCATION).ToDoubleT(), 13);
769 } 773 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/chrome_access_token_store.cc ('k') | chrome/browser/geolocation/geolocation_permission_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698