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

Side by Side Diff: rlz/lib/financial_ping_test.cc

Issue 18031009: Use a direct include of time headers in rlz/, skia/, sql/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « rlz/lib/financial_ping.cc ('k') | skia/ext/convolver_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A test application for the FinancialPing class. 5 // A test application for the FinancialPing class.
6 // 6 //
7 // These tests should not be executed on the build server: 7 // These tests should not be executed on the build server:
8 // - They modify machine state (registry). 8 // - They modify machine state (registry).
9 // 9 //
10 // These tests require write access to HKCU and HKLM. 10 // These tests require write access to HKCU and HKLM.
(...skipping 14 matching lines...) Expand all
25 #include "rlz/lib/machine_id.h" 25 #include "rlz/lib/machine_id.h"
26 #include "rlz/lib/rlz_lib.h" 26 #include "rlz/lib/rlz_lib.h"
27 #include "rlz/lib/rlz_value_store.h" 27 #include "rlz/lib/rlz_value_store.h"
28 #include "rlz/test/rlz_test_helpers.h" 28 #include "rlz/test/rlz_test_helpers.h"
29 #include "testing/gmock/include/gmock/gmock.h" 29 #include "testing/gmock/include/gmock/gmock.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 31
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 #include "rlz/win/lib/machine_deal.h" 33 #include "rlz/win/lib/machine_deal.h"
34 #else 34 #else
35 #include "base/time.h" 35 #include "base/time/time.h"
36 #endif 36 #endif
37 37
38 namespace { 38 namespace {
39 39
40 // Must match the implementation in file_time.cc. 40 // Must match the implementation in file_time.cc.
41 int64 GetSystemTimeAsInt64() { 41 int64 GetSystemTimeAsInt64() {
42 #if defined(OS_WIN) 42 #if defined(OS_WIN)
43 FILETIME now_as_file_time; 43 FILETIME now_as_file_time;
44 GetSystemTimeAsFileTime(&now_as_file_time); 44 GetSystemTimeAsFileTime(&now_as_file_time);
45 LARGE_INTEGER integer; 45 LARGE_INTEGER integer;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 EXPECT_TRUE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, 284 EXPECT_TRUE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER,
285 rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::SET_TO_GOOGLE)); 285 rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::SET_TO_GOOGLE));
286 EXPECT_FALSE(rlz_lib::FinancialPing::IsPingTime(rlz_lib::TOOLBAR_NOTIFIER, 286 EXPECT_FALSE(rlz_lib::FinancialPing::IsPingTime(rlz_lib::TOOLBAR_NOTIFIER,
287 false)); 287 false));
288 288
289 EXPECT_TRUE(rlz_lib::FinancialPing::ClearLastPingTime( 289 EXPECT_TRUE(rlz_lib::FinancialPing::ClearLastPingTime(
290 rlz_lib::TOOLBAR_NOTIFIER)); 290 rlz_lib::TOOLBAR_NOTIFIER));
291 EXPECT_TRUE(rlz_lib::FinancialPing::IsPingTime(rlz_lib::TOOLBAR_NOTIFIER, 291 EXPECT_TRUE(rlz_lib::FinancialPing::IsPingTime(rlz_lib::TOOLBAR_NOTIFIER,
292 false)); 292 false));
293 } 293 }
OLDNEW
« no previous file with comments | « rlz/lib/financial_ping.cc ('k') | skia/ext/convolver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698