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

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

Issue 16358024: Use a direct include of strings headers in rlz/, sandbox/, skia/, sql/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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') | rlz/lib/lib_values.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.
11 // 11 //
12 // The "GGLA" brand is used to test the normal code flow of the code, and the 12 // The "GGLA" brand is used to test the normal code flow of the code, and the
13 // "TEST" brand is used to test the supplementary brand code code flow. In one 13 // "TEST" brand is used to test the supplementary brand code code flow. In one
14 // case below, the brand "GOOG" is used because the code wants to use a brand 14 // case below, the brand "GOOG" is used because the code wants to use a brand
15 // that is neither of the two mentioned above. 15 // that is neither of the two mentioned above.
16 16
17 #include "rlz/lib/financial_ping.h" 17 #include "rlz/lib/financial_ping.h"
18 18
19 #include "base/basictypes.h" 19 #include "base/basictypes.h"
20 #include "base/logging.h" 20 #include "base/logging.h"
21 #include "base/string_util.h" 21 #include "base/strings/string_util.h"
22 #include "base/stringprintf.h" 22 #include "base/strings/stringprintf.h"
23 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "rlz/lib/lib_values.h" 24 #include "rlz/lib/lib_values.h"
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)
(...skipping 251 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') | rlz/lib/lib_values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698