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

Unified Diff: test/test_foo.cc

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/test_bar.cc ('k') | test/test_foo.rc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_foo.cc
diff --git a/test/test_foo.cc b/test/test_foo.cc
deleted file mode 100644
index 905c492ff0c7e40595ca5f88ab7712dfda3eb6dd..0000000000000000000000000000000000000000
--- a/test/test_foo.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2006-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-
-#include <windows.h>
-#include <tchar.h>
-
-// This file implements a tiny program that puts up a MessageBox and exits.
-// It's useful for generating test installation targets.
-int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int) {
- TCHAR my_path[MAX_PATH];
- char ver_buf[2048];
- VS_FIXEDFILEINFO *ffi = NULL;
- UINT ver_len = 0;
- GetModuleFileName(hInstance, my_path, MAX_PATH);
- GetFileVersionInfo(my_path, NULL, 2048, ver_buf);
- VerQueryValue(ver_buf, _T("\\"), reinterpret_cast<LPVOID *>(&ffi), &ver_len);
-
- TCHAR msgbuf[256];
- _sntprintf(msgbuf, 256, _T("I am foo v. %d.%d.%d.%d!"),
- HIWORD(ffi->dwFileVersionMS),
- LOWORD(ffi->dwFileVersionMS),
- HIWORD(ffi->dwFileVersionLS),
- LOWORD(ffi->dwFileVersionLS));
- MessageBox(NULL, msgbuf, _T("foo"), MB_OK | MB_ICONINFORMATION);
- return 0;
-}
« no previous file with comments | « test/test_bar.cc ('k') | test/test_foo.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698