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

Side by Side Diff: chrome/browser/media_galleries/fileapi/picasa_file_util_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include <stdint.h>
7
5 #include <set> 8 #include <set>
6 #include <string> 9 #include <string>
7 #include <vector> 10 #include <vector>
8 11
9 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
10 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 15 #include "base/files/scoped_temp_dir.h"
16 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_vector.h" 18 #include "base/memory/scoped_vector.h"
15 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
16 #include "base/run_loop.h" 20 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 21 #include "base/single_thread_task_runner.h"
18 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
19 #include "base/thread_task_runner_handle.h" 23 #include "base/thread_task_runner_handle.h"
20 #include "base/time/time.h" 24 #include "base/time/time.h"
21 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 25 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
22 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" 26 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 94 }
91 95
92 return true; 96 return true;
93 } 97 }
94 98
95 double GetVariantTimestamp() const { 99 double GetVariantTimestamp() const {
96 DCHECK(!folder_dir_.path().empty()); 100 DCHECK(!folder_dir_.path().empty());
97 base::Time variant_epoch = base::Time::FromLocalExploded( 101 base::Time variant_epoch = base::Time::FromLocalExploded(
98 picasa::kPmpVariantTimeEpoch); 102 picasa::kPmpVariantTimeEpoch);
99 103
100 int64 microseconds_since_epoch = 104 int64_t microseconds_since_epoch =
101 (folder_info_.timestamp - variant_epoch).InMicroseconds(); 105 (folder_info_.timestamp - variant_epoch).InMicroseconds();
102 106
103 return static_cast<double>(microseconds_since_epoch) / 107 return static_cast<double>(microseconds_since_epoch) /
104 base::Time::kMicrosecondsPerDay; 108 base::Time::kMicrosecondsPerDay;
105 } 109 }
106 110
107 const std::set<std::string>& image_filenames() const { 111 const std::set<std::string>& image_filenames() const {
108 DCHECK(!folder_dir_.path().empty()); 112 DCHECK(!folder_dir_.path().empty());
109 return image_filenames_; 113 return image_filenames_;
110 } 114 }
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 operation_runner()->CreateSnapshotFile( 585 operation_runner()->CreateSnapshotFile(
582 CreateURL(std::string(kPicasaDirAlbums) + 586 CreateURL(std::string(kPicasaDirAlbums) +
583 "/albumname 2013-04-16/mapped_name.jpg"), 587 "/albumname 2013-04-16/mapped_name.jpg"),
584 snapshot_callback); 588 snapshot_callback);
585 loop.Run(); 589 loop.Run();
586 EXPECT_EQ(base::File::FILE_OK, error); 590 EXPECT_EQ(base::File::FILE_OK, error);
587 EXPECT_EQ(image_path, platform_path_result); 591 EXPECT_EQ(image_path, platform_path_result);
588 } 592 }
589 593
590 } // namespace picasa 594 } // namespace picasa
OLDNEW
« no previous file with comments | « chrome/browser/media_galleries/fileapi/picasa_file_util.cc ('k') | chrome/browser/media_galleries/fileapi/picasa_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698